UnsavedChangesNotifier doesn't work on browser back button

It seems that when a form is being exit without save in every scenario the <UnsavedChangesNotifier /> of @refinedev/react-router-v6 will always get trigger, however when press back button of the browser it doesn't get trigger
2 Replies
kapa.ai
kapa.ai4mo ago
Hi @phumva12345. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the extracts provided, there is no specific mention or detail about the behavior of the <UnsavedChangesNotifier /> component from @refinedev/react-router-v6 in relation to the browser's back button not triggering the unsaved changes warning. The documentation extracts focus on the general functionality of the <UnsavedChangesNotifier /> component, such as its purpose to warn users about unsaved changes when navigating away from a page and its setup within different routing contexts (React Router v6, Next.js). However, they do not address specific issues or behaviors related to browser navigation buttons. For detailed troubleshooting or to find a solution to this specific issue, I recommend consulting the official refine documentation or seeking support from the refine community. The documentation might have been updated or the community could have shared solutions for similar issues. For more information on the <UnsavedChangesNotifier /> component and its general setup, you can refer to the React Router v6 integration documentation here: React Router v6 Integration (https://refine.dev/docs/routing/integrations/react-router#unsavedchangesnotifier). If the issue persists and is not covered in the documentation, reaching out to the refine community through their support channels, such as GitHub issues or community forums, might provide more targeted assistance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai4mo ago
<@158946221560561664> kapa.ai is still learning and improving, please let us know how it did by reacting below