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): avoid stub cache for teleport for reactive update #2065

Merged
merged 3 commits into from
Jun 5, 2023

Conversation

freakzlike
Copy link
Collaborator

@freakzlike freakzlike commented May 18, 2023

Again an issue with the transformationCache. I'm not quite sure yet why the cache is causing these issues.

fix #2033


Also tested if #1781 is fixed aswell, but it wasn't the case

@freakzlike freakzlike marked this pull request as ready for review May 18, 2023 09:13
@netlify
Copy link

netlify bot commented May 18, 2023

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

Name Link
🔨 Latest commit 4eb66e0
🔍 Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/646a02614655f20008b982c0
😎 Deploy Preview https://deploy-preview-2065--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 requested review from xanf and cexbrayat May 18, 2023 09:15
// Teleport/KeepAlive should return child nodes as a function
if (isTeleport(originalType) || isKeepAlive(originalType)) {
return [cachedTransformation, props, () => children, ...restVNodeArgs]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting that the workaround to get rid of the warnings is no longer needed 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's still needed a few lines below

Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great @freakzlike - mind rebasing this one? Thanks 🙏

# Conflicts:
#	src/vnodeTransformers/util.ts
@freakzlike
Copy link
Collaborator Author

Great @freakzlike - mind rebasing this one? Thanks 🙏

@lmiller1990 updated 👍

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: Stubbed Teleport does not update reactively
3 participants