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

Suspense 在 CSR 下重复发起请求 #5985

Closed
chenjun1011 opened this issue Feb 28, 2023 · 0 comments · Fixed by #5950
Closed

Suspense 在 CSR 下重复发起请求 #5985

chenjun1011 opened this issue Feb 28, 2023 · 0 comments · Fixed by #5950
Labels

Comments

@chenjun1011
Copy link
Collaborator

Describe the bug

在 CSR 下,Suspense 组件如果 rerender,里面的 useSuspense 会重新发起请求,因为此时 script 中注入的 script 不会执行,导致无法从 ICE_SUSPENSE_LOADER 中取到值,suspenseState 状态也会被重置

Expected behavior

理论上CSR行为应该与 SSR 一致,针对一个 id 只发起 1次请求

Actual behavior

No response

Version of ice.js

3

Content of build.json or ice.config.mts

No response

Additional context

No response

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

Successfully merging a pull request may close this issue.

1 participant