Cleanup Function
↔ function call on Unmount, via return function from useEffect()
aka Cleanup-Fn, Cleanup
Cleanup Function used to prevent Memory Leak
AbortController
References
Run [
Effect](effect) once **onMount** + [**_
Cleanup_**](cleanup-function)
↔ calluseEffect()
with empty Deps Array & return Cleanup FunctionRun [
useEffect()](useeffect) only [**_
Cleanup_**](cleanup-function) for [
Unmount](unmount)
↔ double Arrow Function to return Cleanup Function
useEffect(() => () => CLEANUP(),
[] )
Run [
Effect](effect) + [**_
Cleanup_**](cleanup-function) on **specific renders**
↔ calluseEffect()
with property in Deps Array & Cleanup FunctionRun [
Effect](effect) + [**_
Cleanup_**](cleanup-function) on **specific renders**
↔ calluseEffect()
with property in Deps Array & Cleanup FunctionRun [
Effect](effect) once **onMount** + [**_
Cleanup_**](cleanup-function)
↔ calluseEffect()
with empty Deps Array & return Cleanup FunctionRun [
useEffect()](useeffect) only [**_
Cleanup_**](cleanup-function) for [
Unmount](unmount)
↔ double Arrow Function to return Cleanup Function
useEffect(() => () => CLEANUP(),
[] )