Skip to content

Post flush watchers are re-executed when leaving suspended page #1565

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

Closed
adamjedlicka opened this issue Sep 29, 2022 · 1 comment
Closed
Labels
external This depends on an external dependency but is kept opened to track it

Comments

@adamjedlicka
Copy link

adamjedlicka commented Sep 29, 2022

Version

4.1.5

Reproduction link

jsfiddle.net/ocbx1hf7/1/

Steps to reproduce

Post flush watchers are NOT re-executed in synchronous pages (expected behaviour), but when route component is wrapped in suspense, watchers from olde page are executed.

What is expected?

When switching from Category 2 to Product 1 in the example, only "Product 1" should be logged in the console.

What is actually happening?

When switching from Category 2 to Product 1 in the example, "Product 1" alongside with the "Category 1" from the old page are logged in the console.

@posva
Copy link
Member

posva commented Oct 3, 2022

@posva posva closed this as completed Oct 3, 2022
@posva posva added the external This depends on an external dependency but is kept opened to track it label Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external This depends on an external dependency but is kept opened to track it
Projects
None yet
Development

No branches or pull requests

2 participants