Replies: 4 comments 13 replies
-
Yeah, that would be great. I wonder where I would implement it and how. Also, maybe we should learn more about implementation approaches from others. |
Beta Was this translation helpful? Give feedback.
-
Here is some code that I found referenced while browsing issues in other projects. It attempts to recover from an import error in the browser: |
Beta Was this translation helpful? Give feedback.
-
I just found this - https://vite.dev/guide/build#load-error-handling
|
Beta Was this translation helpful? Give feedback.
-
I'm testing a vite plugin to generate a build ID. I'd rather store it somewhere that can be imported by the server. platformData? Or something else? I also don't know if there's a better way to generate the build ID but it seems to be effective with the base template. https://github.com/rmarscher/waku-version-skew-example/blob/main/waku.config.ts#L44 Once we have a build ID, we could pass it down to React somehow and set it in a request header from the Waku client and then compare it on the server. If it doesn't match, the server can return some type of error code that the client can use to reload the modules - or reload the page. |
Beta Was this translation helpful? Give feedback.
-
When new versions of client code are deployed, it is helpful if the framework can help load the new version into open browser windows.
I see some people call this issue
version skew
- https://www.industrialempathy.com/posts/version-skew/. See https://nextjs.org/docs/app/building-your-application/deploying#version-skew and https://svelte.dev/docs/kit/configuration#versionBeta Was this translation helpful? Give feedback.
All reactions