https://github.com/hosseind88/custom-event-monitoring
this is an devtools extention that let's you monitor events that you dispatch by document.dispatchEvent
https://github.com/hosseind88/custom-event-monitoring
extention javascript monitoring react
Last synced: 5 months ago
JSON representation
this is an devtools extention that let's you monitor events that you dispatch by document.dispatchEvent
- Host: GitHub
- URL: https://github.com/hosseind88/custom-event-monitoring
- Owner: hosseind88
- Created: 2022-06-17T09:36:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-05T06:21:27.000Z (about 3 years ago)
- Last Synced: 2025-01-02T04:32:35.187Z (6 months ago)
- Topics: extention, javascript, monitoring, react
- Language: TypeScript
- Homepage:
- Size: 306 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom Event Monitoring
this is an devtools extention that let's you monitor events that you dispatch by ```document.dispatchEvent```
in main page you can add your listener events. f.e you want to dispatch an event like this:
```
document.dispatchEvent(new CustomEvent('KEY_A', {
detail: {
name: 'some data'
}
}));
```
you should add ```KEY_A``` and hit confirm.
then you see this page:

now you can dispatch your events. let's dispatch above event that we said about.
now you will see this:
tada 🎉.
and also you can click on event buttons and filter events you see. or click on back button and edit the events you defined.
we have not deployed this extention yet. so until then, you can clone this project and do these steps:
```
yarn install
yarn run build
```then you have a dist folder. go to:
extentions > click on Developer Mode > Load Unpacked > Select dist folder and hit savedone. you now have it in your devtools.