-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Remove 'navigateFallback' behavior from default SW config #3248
Comments
That sounds like a deal-breaker, no? We expect that the vast majority of apps are built with client side If the default experience is broken, it seems like the majority would be better served by disabling service workers than by breaking client-side routing out of the box. Do I misunderstand the proposal? |
Your understanding of the proposal sounds correct, though I want to clarify what broken means in this context. Removing The offline experience for those The benefit of going with this approach vs. disabling service workers entirely is that navigations to If folks are not a fan of this proposal, then earlier proposals, like #3024 (comment) are still viable ways addressing some of the same pain points that this tries to solve. |
Okay, this sounds reasonable. Thanks for explaining! |
i wouldn’t have minded the burden! i love burden but it’s now closed in favour of yours thanks! it looks like a good move. |
Fixed by #3419. |
I wanted to move my latest comments from #2398 (comment) into a specific issue to discuss them separate from the larger meta-conversation around service workers in
create-react-app
:Given that it would break the "navigate to a random URL and expect it to work" offline experience for any SPAs that have gone through the steps to support the History API's
pushState()
, I think that if we move forward, it needs to wait until the next major release ofcreate-react-app
.@chee has put together #3024 which would be sufficient in terms of a code change, but we'd need to accompany it with changes to the docs explaining how to
eject
and re-enable that behavior for SPAs using the History API (which I'm happy to write).CC: @Timer @gaearon @addyosmani for their thoughts.
The text was updated successfully, but these errors were encountered: