Why does the modal does not disapear after closing?
Answered
Australian Freshwater Crocodile posted this in #help-forum
Australian Freshwater CrocodileOP
[See codesandbox](https://codesandbox.io/p/devbox/strange-flower-7nz5gd?file=%2Fapp%2Fissue%2F%40table%2Fpage.tsx)
why does the modal component stays mounted after navigating back to the "home" page, where the modal RSC is only returining null?
why does the modal component stays mounted after navigating back to the "home" page, where the modal RSC is only returining null?
4 Replies
@Australian Freshwater Crocodile [See codesandbox](https://codesandbox.io/p/devbox/strange-flower-7nz5gd?file=%2Fapp%2Fissue%2F%40table%2Fpage.tsx)
why does the modal component stays mounted after navigating back to the "home" page, where the modal RSC is only returining null?
the default.tsx file is a bit buggy
Answer
Did it without default.tsx and it works fine
Australian Freshwater CrocodileOP
Thank you, it works well wihtout the default.