signal - effect() not always triggered when the signal is updated #51180
Labels
area: core
Issues related to the framework runtime
core: reactivity
Work related to fine-grained reactivity in the core framework
needs reproduction
This issue needs a reproduction in order for the team to investigate further
Milestone
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
Not sure if this is a bug, or if I use effect() wrong.
I have this effect in the constructor, I tried with patchValue too btw same result.
And this code which is called when the form is saved, which should trigger the effect but it does not
If I change the code in the effect for this, then it is triggered.
Any reason why assigning the signal value to a const first before setting the form value works, but not if used directly?
Thank you!
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: