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

fix: 先下掉客户端本地存储功能,已修复部分异常问题 #50

Merged

Conversation

Ximu-Luya
Copy link
Collaborator

发现一些服务端渲染特有的问题,我在本地也复现过。实在有点晚了,明天再修。

复现步骤是:调整到非按城市排序模式,刷新页面,服务端渲染的是按城市排序,然后加载客户端localStorage。这时控制台会报非常多客户端与服务端渲染不匹配的警告,并且可能会出现下图奇怪的情况。

image

解决方案:我先暂时下掉本地存储加载功能

@Ximu-Luya Ximu-Luya merged commit 579f98e into yjl9903:main Mar 17, 2024
1 check passed
@yjl9903
Copy link
Owner

yjl9903 commented Mar 18, 2024

哦,那就 useCookie 可能会好一点

@Ximu-Luya
Copy link
Collaborator Author

我晚上研究研究这个,我试了,但这样服务端渲染就失效了,打开页面的时候表格数据是白的,有点丑哈哈哈。

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

Successfully merging this pull request may close these issues.

2 participants