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

Chaining non-prop 'pre' watchers #1781

Closed
skirtles-code opened this issue Aug 5, 2020 · 1 comment
Closed

Chaining non-prop 'pre' watchers #1781

skirtles-code opened this issue Aug 5, 2020 · 1 comment

Comments

@skirtles-code
Copy link
Contributor

Version

3.0.0-rc.5

Reproduction link

https://jsfiddle.net/skirtle/usymq9z0/2/

Steps to reproduce

  1. Open the console.
  2. Click the button.
  3. Note that the chained 'pre' watcher logs after render.

What is expected?

The 'pre' watcher should log before render.

What is actually happening?

The new 'pre' watcher is added to the end of the queue and doesn't run until after rendering.


This is very similar to #1777 except there are no props involved so the fix for that issue doesn't apply.

I have confirmed this problem exists on the latest master.

The example is just for illustration. In a 'real' application the count property might be in store state, making the use of a watcher significantly less contrived.

@yyx990803
Copy link
Member

Fixed in 3692f27

@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants