Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

In the getters, reactivity is lost #2081

Closed
vcharov opened this issue Mar 18, 2023 · 1 comment
Closed

In the getters, reactivity is lost #2081

vcharov opened this issue Mar 18, 2023 · 1 comment

Comments

@vcharov
Copy link

vcharov commented Mar 18, 2023

Reproduction

https://jsbin.com/dapunin/edit?js,output

Steps to reproduce the bug

Execute this.computedDataResultsMap.delete(id), that is, change `store.fetchData.computedDataResultsMap

Expected behavior

The getter dataResults must be reactive

Actual behavior

The dataResults getter is not updated when store.fetchData.computedDataResultsMap is changed
In the code it is

this.computedDataResultsMap.delete(id) // in the delete method

The getter computedDataResultsMap remains reactive

Additional information

No response

@vcharov
Copy link
Author

vcharov commented Mar 18, 2023

There is no error in the code and reactivity works correctly. As it turns out, Vue.js devtools 6.5.0 in the pinia section cannot display reactive values of this kind

@vuejs vuejs locked and limited conversation to collaborators Apr 3, 2023
@posva posva converted this issue into discussion #2112 Apr 3, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant