From 3ecd72d6c9b331e1d2be3ec398a8f97b704b4b3d Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 14 Jul 2022 21:13:02 +1000 Subject: [PATCH] Add navigation from `index.html` troubleshooting guide --- website/docs/guides/troubleshooting.mdx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/website/docs/guides/troubleshooting.mdx b/website/docs/guides/troubleshooting.mdx index 2bea2216e..90c7d78dc 100644 --- a/website/docs/guides/troubleshooting.mdx +++ b/website/docs/guides/troubleshooting.mdx @@ -94,4 +94,18 @@ Source: https://github.com/wailsapp/wails/issues/1233 Sometimes the generated Typescript doesn''t have the correct types. To mitigate this, it is possible to specify what types should be generated using the `ts_type` struct tag. For -more details, please read [this](https://github.com/tkrajina/typescriptify-golang-structs#custom-types). \ No newline at end of file +more details, please read [this](https://github.com/tkrajina/typescriptify-golang-structs#custom-types). + +## When I navigate away from `index.html`, I am unable to call methods on the frontend + +If you navigate away from `index.html` to a new html file, the context will be lost. This can be fixed by adding +the following imports to the `` section of any new page you navigate to: + +```html + + + + +``` + +Source: https://github.com/wailsapp/wails/discussions/1512 \ No newline at end of file