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: ensure view measurer exists #295

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

keuby
Copy link

@keuby keuby commented Jan 31, 2023

获取 viewRect 时确认 view measurer 存在与 document 上。

场景:

在微前端场景下,基座和子应用都使用了 vueuc,子应用先渲染 VFollower,此时会先在子应用中创建 view measurer。之后基座再渲染 VFollower,此时会查询到子应用创建的 view measurer 并缓存。

如果之后切换子应用,view measurer 被移除,此时基座的 VFollower 渲染就会存在异常。

@vercel
Copy link

vercel bot commented Jan 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
vueuc ❌ Failed (Inspect) Jan 31, 2023 at 8:47AM (UTC)

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.

None yet

1 participant