FunctionsuseEffectuseEffect CallableuseEffect(fn: () => Cleanup, deps?: SignalLike<unknown>[]): voidCreates an effect which will rerun when any accessed signal changes. If used inside of a component and the component is not yet mounted, the effect will run only after the component is mounted. Otherwise, the effect will run immediately.
Creates an effect which will rerun when any accessed signal changes.
If used inside of a component and the component is not yet mounted, the effect will run only after the component is mounted. Otherwise, the effect will run immediately.