Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
发现一些服务端渲染特有的问题,我在本地也复现过。实在有点晚了,明天再修。
复现步骤是:调整到非按城市排序模式,刷新页面,服务端渲染的是按城市排序,然后加载客户端localStorage。这时控制台会报非常多客户端与服务端渲染不匹配的警告,并且可能会出现下图奇怪的情况。
解决方案:我先暂时下掉本地存储加载功能