useEventSource
no option to just watch specific events
#973
Replies: 3 comments 1 reply
-
@wheatjs I think this issue can be converted into a discussion. I don't have the permission to do that 🙂 |
Beta Was this translation helpful? Give feedback.
-
Agree with @Shinigami92 I would like to refactor this part to use |
Beta Was this translation helpful? Give feedback.
-
Would be nice also if there is a way to parse the data automatically here: https://github.com/vueuse/vueuse/blob/main/packages/core/useEventSource/index.ts#L57 Using destr would be best |
Beta Was this translation helpful? Give feedback.
-
Currently you can register for some
events
, but still all events are triggered and passed todata
.What is the best practice to handle specific events and observe the data for only such an event? So e.g. the used
data
-watch
don't get triggered for every event.Beta Was this translation helpful? Give feedback.
All reactions