#Context and HMR

3 messages · Page 1 of 1 (latest)

frank folio
#

Hi,
I'm having a small issue with the combination of context consumer and HMR.
Example here: https://stackblitz.com/edit/solidjs-templates-wf2avx?file=src%2FContextConsumer.tsx
(The same happens locally too)

Basically when you edit the ContextConsumer the context value is lost during HMR.

Is that something expected? I found an old similar issues on github:
https://github.com/solidjs/solid-refresh/issues/14 but I don't see a resolution.
Am I missing something?

GitHub

Describe the bug When i change some code in App.jsx, I need to manually refresh the browser page. I don't know if this is expected or not? But I would really like if the browser page refresh au...

woeful tangle
#

App is importing from ContextConsumer
ContextConsumer is importing from App