score:0

Your boolean.current value will never be changed as it's useEffect callback behaves as contructor function which will run only once as we have empty dependency inside it.


Related Query

More Query from same tag