dan-cooke / remix-sse

Server Sent Events (SSE) for the remix framework
Apache License 2.0
78 stars 3 forks source link

In dev mode on vite using remix I don't get the listener cleanup functions called #27

Open vidjuheffex opened 4 months ago

vidjuheffex commented 4 months ago

In prod mode everything works fine.

However, in dev mode on vite using remix I don't get the listener cleanup functions called. HMR?

dan-cooke commented 4 months ago

@vidjuheffex yes its most likely an issue with HMR, i will look into it when I get a chance

larswww commented 2 months ago

Evaluating libraries for SSE and saw that remix-utils have a similar issue in their implementation. Perhaps you'll find this thread helpful: https://github.com/sergiodxa/remix-utils/issues/317

mkromann commented 2 weeks ago

This is still an issue as far as I can tell?

Does anybody have a workaround for how to deal with this? Currently it seems infeasible to develop with SSE and Remix, as any complex SSE bogs down in development.