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

with side-effect computed will cause an infinite loop when it returns different values in each run #11181

Closed
Doctor-wu opened this issue Jun 20, 2024 · 0 comments · Fixed by #11183
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: reactivity

Comments

@Doctor-wu
Copy link
Member

Vue version

3.4.28

Link to minimal reproduction

https://play.vuejs.org/#eNp9Uk1Lw0AQ/SvDXmyxpGo9SE0LKgp60KIeFyRNJjU12V32I1ZC/ruzm34Jtqck896beTN5DbtRKqodsjGLTaoLZcGgdWrKRVEpqS00kMpKOYvZADTm0EKuZQUnJDrhgotUCmMhlxImHu+d9a935Xmiqbxp0Ov1YTKFhgvwgqhOSodwOoFzkgCprdNih1Cx3W+WHmi11jWQjf3Addt2J4+H3Wq0VGyxUmVikd4B4qyopw1tGGXQtvHQfx6ux8M9MRswa8hXXiyipZGCDhjMcOYtFiXqF2UL8s3ZuLPpsaQs5fdTqFntcLCpp5+Yfv1TX5qVr3E202hQ18jZFrOJXqDt4Pu3Z1zR+xasZOZKYh8BX9HI0nmPHe3WiYxs7/GC28cQg0Is3s39yqIwm6W8Uc9sA58zCsTdkdV3dkfRKOjo/9AVZ6jpfHRDuuA2coeDpgL9Tjph/wYOV0GbO5H64WviQ5JaqX96Iqmw35np+sj5kvRrdx4dh2aBFxby+fHPvYEHAkutfNZCJj5qotN4WmYUXUYXV6z9BSbmIU8=

Steps to reproduce

Open the demo and get an error

What is expected?

No error occurred

What is actually happening?

Maximum recursive updates exceeded in component

System Info

No response

Any additional comments?

related context: #11170 (comment)

Doctor-wu added a commit to Doctor-wu/core that referenced this issue Jun 20, 2024
@Doctor-wu Doctor-wu added scope: reactivity 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels Jun 20, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: reactivity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant