-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
preload 数据在路由切换时没有清除,其它页面也能获取到 #16930
Comments
我学乖了,读取后就立即清除😭 看代码 |
This was referenced Nov 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
复现仓库
https://github.com/zhang0ZGC/taro3-playground.git
小程序基础库: 2.32.3
使用框架: React
复现步骤
preload
API预加载数据,跳转到PageB;期望结果
预加载数据只在在PageB显示
实际结果
只要不重新调用preload,在所有页面都会访问到之前设置的preloadData,容易导致数据错乱
环境信息
The text was updated successfully, but these errors were encountered: