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. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions