preactjs/prefresh

Stops working after first refresh

cloudkite opened this issue · 1 comments

Probably an uncommon scenario in terms of how project is setup, as components are rendered into iframes.
The first change reloads fine but subsequent changes nothing happens.

CleanShot.2021-06-20.at.21.22.43.mp4

sample project for reproducing issue https://github.com/cloudkite/prefresh-example
to run project yarn && yarn start

Sorry forgot to commit my .babelrc.js file which aliases react & react-dom to preact/compat. Have updated the example repo