3 ms·
Is that react code correct? setState is async, so you would probably want to clear the flag in "componentDidUpdate" (or just throttle the mouse handler directly
by mikewhy 10y ago
Is that react code correct? setState is async, so you would probably want to clear the flag in "componentDidUpdate" (or just throttle the mouse handler directly)