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(suspense): don't run post flush callbacks in suspended component (fix #6811) #7009

Closed
wants to merge 2 commits into from

Conversation

adamjedlicka
Copy link
Contributor

@adamjedlicka adamjedlicka commented Nov 2, 2022

As described in #6811 post flush watchers are executed in suspended components that are currently being switched out. This has huge implications for example in routing, where switching pages executes both post flush watchers both on the new page and also on the old page. This PR fixes this issue and causes post flush watchers to be executed ONLY on the new component.

Closes #6811

@adamjedlicka
Copy link
Contributor Author

adamjedlicka commented Nov 2, 2022

Closes #6811

@adamjedlicka
Copy link
Contributor Author

So apparently this completely breaks post-flsuh watchers in Suspense. I'll add more tests and try to do a proper fix.

@skirtles-code
Copy link
Contributor

@adamjedlicka Is it still your intention to continue working on this PR? If I've understood your previous comment, it sounds like this isn't currently a valid fix. If you don't have time to work on it then should it maybe be closed?

@yyx990803
Copy link
Member

Closing as stale for now.

@yyx990803 yyx990803 closed this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Rejected
Development

Successfully merging this pull request may close these issues.

Suspended component still trigger watchers while being switched out
3 participants