Registers the given function to track reactive updates.
The given function will be run once immediately. Every time any reactive property that's accessed within it gets updated, the function will run again.
The function that will track reactive updates.
Optional
Allows to control the effect's behaviour.
A runner that can be used to control the effect after creation.
Registers the given function to track reactive updates.
The given function will be run once immediately. Every time any reactive property that's accessed within it gets updated, the function will run again.