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

Bug: Stubbed Teleport does not update reactively #2033

Closed
lmiller1990 opened this issue Apr 18, 2023 · 3 comments · Fixed by #2065
Closed

Bug: Stubbed Teleport does not update reactively #2033

lmiller1990 opened this issue Apr 18, 2023 · 3 comments · Fixed by #2065
Labels
bug Something isn't working

Comments

@lmiller1990
Copy link
Member

Describe the bug

Ref: #798 (comment)

To Reproduce

Here: #798 (comment)

Expected behavior

Should update count to 1.

Related information:

Additional context

@Made-of-Clay
Copy link

@lmiller1990, I've successfully reproduced the behavior from my reproduction repo in the teleport automated test and pushed it to a forked branch (so you can see).

After some digging, I suspect it has to do with the slots variable passed into the setup() function not being reactive. The Vue docs note that attrs and slots are not reactive (which I just learned). I also suspect Evan's comment in this thread might be related to the test-utils situation; the stubComponentsTransformer uses slots to make the stub.

I need to come back to this later. I thought I'd share my findings in case someone else or you get a clever idea.

@doutatsu
Copy link

Having issues myself as well, so here to keep an eye on the progress resolving this issue

@Made-of-Clay
Copy link

I'm disappointed I didn't find the fix myself, but I'm very thankful it is resolved. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants