Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] 升级一下 react-router-dom 可以用原生的 useBlocker #12743

Open
kokiy opened this issue Oct 17, 2024 · 0 comments
Open

Comments

@kokiy
Copy link
Contributor

kokiy commented Oct 17, 2024

Background

我们的项目有这样一个需求,如果用户填写了部分表单,想要回退时候给他提示 是否放弃修改. 需要用找个useBlocker

Proposal

可以正常还用useBlocker ,无需任何魔法

Additional context

Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant