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

fix: react Deferred component error on partial visits #2223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KaioFelps
Copy link

This PR should fix the error caused by React Deferred component during partial visits to (or that causes redirects back to) the same page by listening to the start event and bringing back the fallback when a navigation starts.

It also memoizes the keys constant. This stops useEffect from being triggered more times than expected due to the redefinition of keys const on every re-render.

Fixes #2221

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

Successfully merging this pull request may close these issues.

Deferred component throws error after a page (partial) reload
1 participant