-
Notifications
You must be signed in to change notification settings - Fork 18
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
Electron: root reload error #72
Comments
from @bcomnes in hypermodules/hyperamp#68:
|
Dumb fix is just adding |
I tried that, but with the old regex. So close! 😭 |
I think this may be just be a hard limitation of running choo in electron without a server. sheet-router is just not set up to deal with the file protocol. Absolute links will always break on reload because When you reload with electron, it tries to reload whatever the current
So a reload will cause electron to try to load a file from I think for choo to work reliably in an electron environment, there either has to be a server, or sheet-router has to be rewritten to work specifically for an electron environment where routes don't correspond to server routes, and location.href needs to always point to the originating index.html. Maybe only using hash routing in electron contexts is an interim solution? |
We could also fix https://github.com/hypermodules/choo-location-electron to work with the new sheet router / choo. Things works pretty well using that arrangement. |
Note: couldn't get hash routing to work in electron either |
Switched to using nanorouter and hashes. Works great. Good to close. |
Yay!
…On Fri, Apr 21, 2017, 01:43 Bret Comnes ***@***.***> wrote:
Switched to using nanorouter and hashes. Works great.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWleoVBquR89J2dlU0NHOj6GjDXt9i3ks5rx-2ZgaJpZM4LPjfw>
.
|
One last fix needed for electron:
Electron pathname regex needs to be updated to account for
file:///
being equivalent to/
.steps to reproduce
/users
) and then back to root (/
)./
.Will try to send a PR today.
The text was updated successfully, but these errors were encountered: