Automatically reloading WASM on changes? #4442
Unanswered
alexanderpolson
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Which build tool are you using? If you are using trunk, it automatically hashes the WASM file name so that when you deploy a changed version, it will load the new one and not cache it. If you are using |
Beta Was this translation helpful? Give feedback.
2 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.
-
I've managed to rewrite my entire web application in Leptos and couldn't be happier! It's much simpler to use than the previous, non-reactive web framework.
I've run into an issue though related to releasing new versions of the app. When I reload the app with the browsers that I'm using, Firefox and Chrome, the latest version of the WASM isn't downloaded unless I do a hard refresh (Shift+Reload). This is obviously due to caching, not wanting to redownload the WASM again when it likely hasn't changed.
I wonder if anyone here has modified their application such that the new WASM will be downloaded only when it changes? My guess is that this isn't necessarily all a Leptos-specific question, but may require some tweaks to how Leptos is deployed? Perhaps a change to how the WASM is linked in the top-level HTML?
Beta Was this translation helpful? Give feedback.
All reactions