You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reading facebook/react#16604 (comment), I'm interested in what it would take to get this working without an existing bundler.
I'm asking in regards to the https://github.com/AngelMunoz/Perla project. This is a .NET devServer that replace imports from package to CDN URLs (from Skypack). Perla will create an import map so the browser understands everything but that is about it.
Basically in this setup, I have two givens:
I can manipulate any requested JS module
The server detects file changes and communicates these via SSE to a web worker.
Currently, the full page is reloaded when the web worker receives a changed event.
I'm wondering if it is possible to initiate the react refresh.
Hello Dan,
After reading facebook/react#16604 (comment), I'm interested in what it would take to get this working without an existing bundler.
I'm asking in regards to the https://github.com/AngelMunoz/Perla project. This is a .NET devServer that replace imports from package to CDN URLs (from Skypack). Perla will create an import map so the browser understands everything but that is about it.
Basically in this setup, I have two givens:
Currently, the full page is reloaded when the web worker receives a changed event.
I'm wondering if it is possible to initiate the react refresh.
Imagine I have an
app.js
with:At some point, I know it was changed and wish to refresh it.
So my main question here is: can I pull this off?
The original guide speaks about:
If the component changed, how exactly do I reload it in the browser? Can I just dynamically import it again?
And lastly, I believe I'll need to call
let enqueueUpdate = debounce(runtime.performReactRefresh, 30);
to trigger the refresh.Thoughts?
The text was updated successfully, but these errors were encountered: