loading...

re: How to useEffect vs componentDid/Will-unmount VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Right, so in your effect hook, the event listeners are never cleaned up. you have something like this: useEffect(() => { document.addEvent...

Oh I see... this is the callback you were talking about!!! amazing... the weird thing is it only happens to this specific modal so I didnt notice until now! Let me try this and get back to you

AMAZING IT WORKED I added the key down option too.. WOW this lesson was awesome thank you so much... if you ever want free mcdonalds or food I gotchu my friend!

code of conduct - report abuse