Purpose of recommending hash routing #3065
thejoyfuldev
started this conversation in
General
Replies: 1 comment
|
At first, I was curious too, and because I've no reason to use hash routing, I used But today, I've encountered this error: undefined is not an object (evaluating 'window['go']['main']')The error sometimes occurs after a page reload, for example, when manually reloading or during hot-reloads. Related issues:
The cause is that the Wails Runtime and IPC are only injected when the path ends with wails/v2/pkg/assetserver/assetserver.go Lines 248 to 255 in 896a90f The solution is either by using in-memory routing, hash routing, or manually inject the Wails IPC and Runtime (https://wails.io/docs/guides/frontend/#script-injection). Hope this helps. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What is the purpose behind recommending hash routing with Wails? Are there any drawbacks to using the full URL instead of a hash strategy? I've used both and tested various scenarios and haven't come across a reason why hash would be recommended over the full url.
All reactions