Navigation Menu

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(ssr): set() twice lose reactivity #821

Merged
merged 4 commits into from Oct 5, 2021
Merged

fix(ssr): set() twice lose reactivity #821

merged 4 commits into from Oct 5, 2021

Conversation

posva
Copy link
Member

@posva posva commented Oct 1, 2021

Same as #795

It seems to still be failing.

It creates vuejs/pinia#648

@posva
Copy link
Member Author

posva commented Oct 3, 2021

So it works 🤔
I think it has to deal with the rename of the main branch

What is weird is that the error "toRefs() expects a reactive object" appears on the server on Nuxt even though it's running 1.2.2

Regarding the test, should we add this? It doesn't seem like it was added back then

@posva posva changed the title test: add failing test of isReactive test: isReactive of dynamically added properties Oct 3, 2021
@posva
Copy link
Member Author

posva commented Oct 3, 2021

Found the problem: setting twice. I'm going to fix this on Pinia but I don't think this edge case is currently working as expected.

posva added a commit to vuejs/pinia that referenced this pull request Oct 3, 2021
Fix #648

If this PR vuejs/composition-api#821 gets fixed, this commit can be reverted
@antfu antfu changed the title test: isReactive of dynamically added properties fix(ssr): set() twice lose reactivity Oct 5, 2021
@antfu antfu merged commit 416845a into main Oct 5, 2021
@antfu antfu deleted the bug/ssr-isReactive branch October 5, 2021 00:47
rajesh-bhavnani pushed a commit to rajesh-bhavnani/Jason-pinia that referenced this pull request Dec 25, 2022
Fix #648

If this PR vuejs/composition-api#821 gets fixed, this commit can be reverted
arthur-king-excalibur added a commit to arthur-king-excalibur/vu-pinia that referenced this pull request Dec 24, 2023
Fix #648

If this PR vuejs/composition-api#821 gets fixed, this commit can be reverted
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.

None yet

2 participants