It seems react-router-dom v6.0.2 removed 'useBlocker' and 'usePrompt' (or rename it). How to do the same thing again?
I just want to warn the user when they leave a page.
It seems react-router-dom v6.0.2 removed 'useBlocker' and 'usePrompt' (or rename it). How to do the same thing again?
I just want to warn the user when they leave a page.