Umi4 Prompt组件从哪里导出的?

import { useParams, Prompt, useIntl, Access, useAccess } from 'umi';

阅读 3.2k
1 个回答

umi4找不到Prompt及react-helmet · Issue #8206 · umijs/umi

Prompt 没了,参考 react-router 6 的升级文档;react-helmet 自己依赖吧;其他问题请单独提 issue,同时给最简复现。

Upgrading from v5 v6.15.0 | React Router

<Prompt> is not currently supported

<Prompt> from v5 (along with usePrompt and useBlocker from the v6 betas) are not included in the current released version of v6. We decided we'd rather ship with what we have than take even more time to nail down a feature that isn't fully baked.
We will absolutely be working on adding this back in to v6 at some point in the near future, but not for our first stable release of 6.x.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题