Skip to content
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

How to get forceRefresh behaviour from <BrowserRouter> in v6.0.0 #8242

Closed
vitorbertolucci opened this issue Nov 5, 2021 · 2 comments
Closed

Comments

@vitorbertolucci
Copy link

I saw that it is recommended to ask support/usage questions on Stack Overflow, but I believe this one is relevant enough for being here as it is a lost functionality that is not covered on the migration guide.

Before v6.0.0 there was a forceReresh prop on BrowserRouter that caused the window to refresh whenever a navigation occurred, but it is no longer available. That prop was useful for forcing clients to download the latest build files after an app update (at least that's why we used it, not sure if it was useful for something else).

Has this prop gone somewhere else or has it been completely removed? If so, I believe that it would be worth to point out on the migration guide.

@timdorr
Copy link
Member

timdorr commented Nov 5, 2021

This isn't yet supported in the underlying history library. Here's the TODO line for it: https://github.com/remix-run/history/blob/8bef6f4d50548f46ab7c97e171b3d8634093e7a7/packages/history/index.ts#L489

Once it's added there, we can add it here.

@timdorr timdorr closed this as completed Nov 5, 2021
@anark
Copy link

anark commented Nov 8, 2021

Thanks @timdorr,
Should we keep this issue open or make an issue to track this? This is definitely an unexpected incompatibility with no workaround when upgrading from v5 to v6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants