Skip to content

Have getters ignore some state dependency change #1154

Discussion options

You must be logged in to vote

You can indeed use toRaw() to escape Vue reactivity tracking. Depending on the case, using toRaw(state), toRaw(this.$state), or even toRaw(this).$state should give you access to that.

Behind the scenes, a getter is just a computed property.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by WangHansen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1153 on March 16, 2022 15:06.