Create a watch that runs an effect whenever the dependencies change.
The effect function which will be called immediately and whenever the dependencies change.
Optional
Optional watch config.
A disposer function that can be called to stop the watch.
Create a watch that runs an effect whenever the dependencies change.