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

Render from variable. Maximum recursive updates exceeded #3717

Closed
Kerigard opened this issue May 2, 2021 · 2 comments
Closed

Render from variable. Maximum recursive updates exceeded #3717

Kerigard opened this issue May 2, 2021 · 2 comments

Comments

@Kerigard
Copy link

Kerigard commented May 2, 2021

Version

3.0.11

Reproduction link

https://codepen.io/kerigard/pen/KKaOKRJ

Steps to reproduce

  • Open repro link
  • Open browser console
  • Click on button Show notify with components

What is expected?

Components are rendered once

What is actually happening?

Components are constantly being updated

@edison1105
Copy link
Member

edison1105 commented May 2, 2021

as a workaround:

const content = shallowRef()

or

 content.value = Vue.markRaw(options)

@HcySunYang
Copy link
Member

[h(VButton, null, { default: () => 'button' }), ' in notify']

The children array will be implicitly normalized, if the array is reactive, it will potentially trigger an update. For any VNode-related data, you should use markRaw to wrap it.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants