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

[Teleport] 使用了 Teleport 的组件在 ssr 水合(hydration)时都会告警 #1518

Open
BuptStEve opened this issue Aug 1, 2024 · 2 comments · May be fixed by #1654
Open

[Teleport] 使用了 Teleport 的组件在 ssr 水合(hydration)时都会告警 #1518

BuptStEve opened this issue Aug 1, 2024 · 2 comments · May be fixed by #1654
Labels
bug Something isn't working hard 困难问题 issueshoot 代码共建平台

Comments

@BuptStEve
Copy link
Contributor

BuptStEve commented Aug 1, 2024

tdesign-mobile-vue 版本

1.3.1

重现链接

https://stackblitz.com/edit/github-dyqiua-jdgwmf?file=src%2Fpages%2FHome.vue
image

重现步骤

根据官方文档 https://cn.vuejs.org/guide/scaling-up/ssr#teleports 改造后发现依然有告警
企业微信截图_edae0f2e-0fe9-4ce2-bad4-363af2dedf0b

翻阅源代码发现是因为在 ssr 时并没有透传 attach 参数给 Teleport 组件
企业微信截图_ff8f340f-8c73-4686-a0c3-448cdb1bd38a

期望结果

没有告警

实际结果

复现截图
企业微信截图_804f799e-8dee-4844-b938-72c123cc57c2

框架版本

3.4.35

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

临时 workround

<Popup v-if="isMounted"> ...

const isMounted = ref(false);
onMounted(() => {
  isMounted.value = true;
})

IssueShoot

  • 预估时长: 5
  • 期望完成时间: 2024-10-28 00:00:00 +0000 UTC
  • 开发难度: 高
  • 参与人数: 1
  • 需求对接人: anlyyao
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
Copy link
Contributor

github-actions bot commented Aug 1, 2024

👋 @BuptStEve,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao anlyyao added bug Something isn't working issueshoot 代码共建平台 hard 困难问题 labels Oct 18, 2024
@novlan1
Copy link
Contributor

novlan1 commented Nov 26, 2024

novlan1 added a commit to novlan1/tdesign-mobile-vue that referenced this issue Nov 27, 2024
@novlan1 novlan1 linked a pull request Nov 27, 2024 that will close this issue
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hard 困难问题 issueshoot 代码共建平台
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants