useEffectOnce
FunctionuseEffectOnce(effect: EffectCallback): voidReact lifecycle hook that runs an effect only once.
Parameters
| Parameter | Type | Notes |
|---|---|---|
effect | EffectCallback | example: |
Returns
voiduseEffectOnce(effect: EffectCallback): voidReact lifecycle hook that runs an effect only once.
| Parameter | Type | Notes |
|---|---|---|
effect | EffectCallback | example: |
voidWas this page helpful?
Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.