useChange( effect: EffectCallback, deps?: any, stopWatchByDefault?: boolean,): { beginWatch: () => void; resetWatcher: () => void; stopWatch: () => void;} Parameters
- effect: EffectCallback
Optionaldeps: anyOptionalstopWatchByDefault: boolean
Returns { beginWatch: () => void; resetWatcher: () => void; stopWatch: () => void }
- An object containing utility functions for managing the watcher.
Hook for managing the execution of an effect based on changes in dependencies.