Skip to content

About

Repro: solid-refresh rename causes an endless HMR invalidate loop on Rspack

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

solid-refresh: renaming a component loops forever on Rspack

Issue: solidjs/solid-refresh#88

Minimal repro for a solid-refresh HMR bug ($$refreshStandard, webpack/Rspack).

npm install
npx playwright install chromium   # or set CHROME_PATH
npm run rename     # renames `Page` to `RenamedPage`, counts evaluations of Page.jsx over 5 s
npm run hot-data   # adds `import.meta.webpackHot.data ??= {}` to Page.jsx, then edits its text

Output with solid-refresh 0.7.8:

evaluations of Page.jsx in the 5 s after the rename: 179095
edit NOT shown (and no reload)

Expected: a few evaluations, and edit shown.

About

Repro: solid-refresh rename causes an endless HMR invalidate loop on Rspack

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages