DEV Community

loading...

Discussion on: How to useEffect vs componentDid/Will-unmount

brohittv profile image
Rohit Pratti Author

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

Thread Thread
brohittv profile image
Rohit Pratti Author

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!

Forem Open with the Forem app