Closed mqtik closed 3 years ago
Memory leak detected. Passing an empty array as the second argument to useEffect makes it only run on mount and unmount, thus stopping any infinite loops.
Can this be merged please? The console error pops up all the time.
Thanks @mqtik !
Memory leak detected. Passing an empty array as the second argument to useEffect makes it only run on mount and unmount, thus stopping any infinite loops.