Weird React error

When I show a notification or a modal that is outside of root div. In each render, this error will occur and this is not the first time that this happened. I investigated it a bit, but I couldn't find a solution. This error happens exactly when I call a notification that is set to be positioned absolute or outside the root div. It says can't set the property of undefined, but I can't find it I guess it's deep into react
4 Replies
Samyar
Samyar3y ago
react_devtools_backend.js:4026 TypeError: Cannot set properties of undefined (setting 'hook') at d (<anonymous>:10:949) at c (<anonymous>:10:1426) at e (<anonymous>:10:1913) at e (<anonymous>:10:1931) at e (<anonymous>:10:1931) at e (<anonymous>:10:1931) at e (<anonymous>:10:1931) at e (<anonymous>:10:1931) at e (<anonymous>:10:1931) at i (<anonymous>:10:1942)
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Lukem121
Lukem1213y ago
Why setting modal outside root div?
Samyar
Samyar3y ago
Yes but don't know where it's, the error is just in development not in production I used a library which would add a div outside of root. But that's not the problem I will send a video explaining this error Because it's happening to me so much At first I thought it's just because of the ui library I'm using But when I changed it I was still there Just when I show an absolute positioned thing I will soon share a code sandbox of the error
Want results from more Discord servers?
Add your server