Replies: 2 comments 2 replies
-
Digged a little further: Problem seems to be here. It gets out of sync if full page refresh happens, ie update has a way to top which is not hot accepted. |
Beta Was this translation helpful? Give feedback.
-
I just opened another discussion thread and then saw yours. I think I'm seeing the same thing as you. Were you able to figure it out? |
Beta Was this translation helpful? Give feedback.
-
Hi! I'd like to ask for some help with configuring/understanding es hmr.
Very minimal example:
Due to
@snowpack/plugin-react-refresh
component.tsx
will be hot-replaceable, but changes insession.ts
should trigger full reload, which is fine for me and totally what i'd expect.Repr steps are to first change
session.ts
(full page reload happens), and then changecomponent.tsx
. It will reloadcomponent.tsx
, but alsosession.ts
(both urls with?mtime
), even thoughsession.ts
was not changed again after full reload. To my understanding, dev server rememberssession.ts
was changed, even after full page refresh.Reloaded component are now bound to new apollo reactive variable instances exported from
session.ts?mtime=...
, not interacting properly with the rest of the app.Can i somehow configure it to not add
?mtime
for modules that are not hot-replaceable?Beta Was this translation helpful? Give feedback.
All reactions