-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If pollInterval detects a new version and I click on a not existent link it redirects sine fine #3957
Comments
Could you please publish https://github.com/frederikhors/iss-poll-404 ? |
The repro is here but I cannot reproduce it right now. I think this has something to do with my project which uses a custom sw. I'll close for now. Thank you @baseballyama. |
@frederikhors you might be able to help me? This: #3412 seems out of date, no? |
|
1/ I deploy my app v22. Reading right and left, I found: #3412 and think that it's exactly what I want: Now, I found out this |
I'm using |
How? 😇
How? 😇 Do you have a sample code? 🙏 |
import { updated } from '$app/stores';
updated.subscribe(async (value) => {
if (value) {
if (sw) {
// handle sw update
} else {
window.location.reload();
}
}
}); |
Isn't it too "hard" for your users a reload directly? How do you test the behavior? Thx for your help :) |
Nope for this app.
I save the information in the localstorage in almost all dirty forms (when there is worthy information) as does Github.
I don't. 😄 |
Thx, I'll do the same 😅 |
How to test this in Development Mode ? |
Describe the bug
After #3412 if I have an app with
adapter-static
with this config:if the polling detects the update and I click on a link for a page which doesn't exists instead of rendering the
__error.svelte
page it keeps in an infinite redirect.Reproduction
https://github.com/frederikhors/iss-poll-404
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: