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

antd proTable去详情页返回的时候查询条件会加载不出来 #258

Closed
zwd609258057 opened this issue Mar 7, 2023 · 1 comment
Closed

Comments

@zwd609258057
Copy link

zwd609258057 commented Mar 7, 2023

https://codesandbox.io/s/cha-xun-biao-ge-forked-nzkw0b?file=/App.tsx

快速点击没问题,去详情页等3-5s再返回就有问题了(使用隐藏显示模拟跳转,路由跳转是一样的问题)

image

@CJY0208
Copy link
Owner

CJY0208 commented Mar 16, 2023

是 react18 createRoot 中 useLayoutEffect 的行为和 react-freeze 冲突有关,参考这个 #225 (comment)

两种解决方式,选其一

  1. 使用 react-dom render 替换 react-dom/client createRoot
  2. KeepAlive 标签加上 autoFreeze={false},关闭内部的 freeze 功能

@CJY0208 CJY0208 closed this as completed Mar 16, 2023
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

2 participants