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

[Bug Report]: 点击版本选项卡后,会发生过滤页面数据异常 #66

Closed
Zhengqbbb opened this issue Dec 19, 2023 · 2 comments · Fixed by #67
Closed

[Bug Report]: 点击版本选项卡后,会发生过滤页面数据异常 #66

Zhengqbbb opened this issue Dec 19, 2023 · 2 comments · Fixed by #67
Assignees
Labels
bug Something isn't working

Comments

@Zhengqbbb
Copy link

Zhengqbbb commented Dec 19, 2023

重现步骤:

  1. https://npmmirror.com/package/czg/home 首页点击 “查看全部” 版本
  2. 我的这个包有一些 beta 版本号,在点击 “版本记录” - “所有版本” & “当前 Tags” - “所有版本” 后出现列表闪动,列表从正常的显示数据变化为错误的显示数据
  3. url query param 正常发生变化 ?versions=all&tags=all

初步怀疑是列表过滤与 url props 的改变进行渲染碰撞导致


CleanShot.2023-12-19.at.10.30.37-converted.mp4

Originally posted by @Zhengqbbb in #63 (comment)

@fengmk2
Copy link
Member

fengmk2 commented Dec 19, 2023

@elrrrrrrr

@fengmk2 fengmk2 added the bug Something isn't working label Dec 19, 2023
@elrrrrrrr
Copy link
Member

组件之前没有替换成受控模式 可能会有渲染不一致情况出现
另外 router.isReady 可能也有影响 不过我本地还没有重现出来
部署之后再验证看看 🙏🏻

fengmk2 pushed a commit that referenced this issue Dec 25, 2023
> closes #66 
* `Segmented` 切换为受控模式,解决 UI 渲染不一致问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants