remix-sse icon indicating copy to clipboard operation
remix-sse copied to clipboard

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

Open vidjuheffex opened this issue 1 year ago • 3 comments

In prod mode everything works fine.

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

vidjuheffex avatar Jun 26 '24 16:06 vidjuheffex

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

dan-cooke avatar Jul 06 '24 08:07 dan-cooke

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

larswww avatar Aug 29 '24 13:08 larswww

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.

mkromann avatar Nov 01 '24 08:11 mkromann