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(stub): re-render of recursive component using wrong cached stub #2057

Merged
merged 2 commits into from
May 21, 2023

Conversation

freakzlike
Copy link
Collaborator

@freakzlike freakzlike commented May 17, 2023

On re-render of the root component it used the cached stub from the recursive usage. Now I don't extract from cache for root components. I had another approach which adds another return value cache: boolean, but this was more difficult more code than just adding the condition.

fix #2039

@netlify
Copy link

netlify bot commented May 17, 2023

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit 8ae1ddd
🔍 Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/6465e335598d1900085ac4a0
😎 Deploy Preview https://deploy-preview-2057--vue-test-utils-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@freakzlike freakzlike marked this pull request as ready for review May 18, 2023 08:40
@freakzlike freakzlike changed the title Reproduction for #2039 fix(stub): re-render of recursive component using wrong cached stub May 18, 2023
@freakzlike freakzlike requested review from xanf and cexbrayat May 18, 2023 08:40
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.

Bug: Component is not re-rendered after changing props when a recursive component is rendered
3 participants