We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
没事,你输出一下props,看看里面的数据有哪些变化,就知道一步步更新的原因了
Sorry, something went wrong.
对这个页面而言,第一次页面挂载,所有数据都是初始状态,第二次bannerList更新,重新执行,第三次recommendList更新,重新执行,第四次 enterLoading更新,再次执行。顺便提一嘴,为了减少组件切换带来的重复渲染,我在useEffect里面其实是用了redux做了数据层的缓存,不知道你注意没有,这样你切到别的路由在切回来只会渲染一次。
No branches or pull requests
The text was updated successfully, but these errors were encountered: