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

在SSR环境下使用 Naive ui Message 控件时,从第二次开始的弹框不在有Icon #2721

Closed
sorakylin opened this issue Apr 1, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@sorakylin
Copy link

TuSimple/naive-ui version (版本)

2.27.0

Vue version (Vue 版本)

3.2.27

Browser and its version (浏览器及其版本)

Chrome/99.0.4844.84

System and its version (系统及其版本)

Win 10

Node version (Node 版本)

v14.16.0

Reappearance link (重现链接)

https://github.com/sorakylin/naiveui-message-bug

Reappearance steps (重现步骤)

Expected results (期望的结果)

在服务端渲染(Vite SSR)时使用 Naive ui 的 Message 控件,让第二次及其之后的message弹框出现icon

Actual results (实际的结果)

只有第一次有icon,从第二次开始就没有icon了。

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Apr 1, 2022
@Baiyuetribe
Copy link
Contributor

还有Grid组件SSR模式下响应式也有问题

@sorakylin
Copy link
Author

还有Grid组件SSR模式下响应式也有问题

Grid这个控件有啥问题? 我还没发现。
我这用的是Vite SSR,看看有没有你说的情况

@Baiyuetribe
Copy link
Contributor

还有Grid组件SSR模式下响应式也有问题

Grid这个控件有啥问题? 我还没发现。 我这用的是Vite SSR,看看有没有你说的情况

Grid组件的自适应响应,服务端渲染后需要手动缩放才能跟客户端一样,是个bug. #2462

@Talljack
Copy link
Contributor

Talljack commented Apr 6, 2022

更多讨论在这里 #636 (comment)

@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Apr 9, 2022
@07akioni
Copy link
Collaborator

07akioni commented Apr 9, 2022

找到原因了,因为使用了静态的 component vnode 导致 hydration 的时候 el 还挂在老的 vnode 上,然后导致走进了水合的逻辑。

感谢复现,这个 bug 终于算是解决了,这么看其他地方其实也有潜在的 bug。

@oooowl
Copy link

oooowl commented Apr 17, 2022

找到原因了,因为使用了静态的 component vnode 导致 hydration 的时候 el 还挂在老的 vnode 上,然后导致走进了水合的逻辑。

感谢复现,这个 bug 终于算是解决了,这么看其他地方其实也有潜在的 bug。

2.28.0 message正常了,dialog和notification依然存在这个问题

@07akioni
Copy link
Collaborator

找到原因了,因为使用了静态的 component vnode 导致 hydration 的时候 el 还挂在老的 vnode 上,然后导致走进了水合的逻辑。
感谢复现,这个 bug 终于算是解决了,这么看其他地方其实也有潜在的 bug。

2.28.0 message正常了,dialog和notification依然存在这个问题

Will fix

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

No branches or pull requests

5 participants