-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Equivalent to createURLRoute
in new version?
#21
Comments
figured it out! |
not quite - i'm noticing HMR is not working seems to be using the index.html file and not the local dev server |
this is the bottom of my createWindow function
and things load but no hot module reloading |
ok turns out HMR works in the top level App / Layout files But not for the individual route content itself (most of the app) i know its a recent version! hope this is helpful ty |
Hi @sebbean , you no longer need to do this manually: if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
mainWindow.loadURL(process.env['ELECTRON_RENDERER_URL'])
} else {
mainWindow.loadFile(join(__dirname, '../renderer/index.html'))
}
|
@sebbean Also, could you please test/check the with-multiple-windows example? |
@daltonmenezes it does look like this is actually an issue with vite + react-dom-router not triggering page content refreshes i see the reload happen on both the server terminal as well as the dev console in the app the content inside the page content stays stale but content in the wrapper layout changes (HMRs) fine thanks again! i'll check out |
i've installed in a project with electron-vite and react
everything seems to be ok except
I can't seem to match the homepage in dev mode
<Router basename="/main"> is not able to match the URL "/" because it does not start with the basename, so the <Router> won't render anything.
Seems to be related to the lack of ability to load a url vs a htmlFile:
The text was updated successfully, but these errors were encountered: