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

路由间跳转有多次重复渲染 #6461

Closed
aspirantzhang opened this issue Aug 15, 2023 · 2 comments
Closed

路由间跳转有多次重复渲染 #6461

aspirantzhang opened this issue Aug 15, 2023 · 2 comments

Comments

@aspirantzhang
Copy link

Describe the bug

#6390

已升级到最新的 ice v3.2.9 依然存在问题

复现:https://codesandbox.io/p/sandbox/elated-frog-frp23r

Expected behavior

仅一次渲染

Actual behavior

No response

Version of ice.js

3.2.9

Content of build.json or ice.config.mts

No response

Additional context

No response

@ClarkXia
Copy link
Collaborator

现在是离开组件的时候,当前组件会渲染一次,这是一个 loading 态,参考
https://github.com/remix-run/react-router/blob/496b1fe8253643171ecca6e6a945d98386c4eb00/packages/router/router.ts#L1519-L1544

以及 react-router 的文档 https://reactrouter.com/en/main/hooks/use-navigation

@ClarkXia ClarkXia added help wanted and removed bug labels Aug 15, 2023
@aspirantzhang
Copy link
Author

哎呀妈原来还有这么个事,看来少学哪一环都不行啊。我再研究研究。

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

No branches or pull requests

2 participants