-
Notifications
You must be signed in to change notification settings - Fork 9
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
ui flashes due to excessive context updates #657
Comments
@danielvdm2000 I looked briefly. It is related to the concept of using loaders on the routes. The |
Looks like a feature/issue with that library. It force rerenders of everything on every url change. Option to consider:
This issue makes me a bit nervous about that library. Fixing it with the first 2 options ties more and more code to a very specific router implementation. One that even seem to be a somewhat awkward fit for us.
Sounds like the coming v7 is yet another big change https://remix.run/blog/merging-remix-and-react-router |
Found a comment in a closed issue with more info on usage of shouldRevalidate({ currentUrl, nextUrl, defaultShouldRevalidate }) {
if (currentUrl.toString() === nextUrl.toString()) {
return false;
}
return defaultShouldRevalidate;
}, |
That said it looks like it can solve our performance issue for now. The menu and translations files aren't reloading on every interaction now |
The intl provider updates the messages on all interactions that require url updates like pushing a search param
Leading to an extreme amount of requests and rerenders
Translations are reloaded constantly and requires everything to refresh.
The text was updated successfully, but these errors were encountered: