Skip to content

Vue3's recent update causing "dirty computed getter" warning due to some inner workings of useStore() with mapState() #2585

Closed Answered by Doctor-wu
SirH3nry asked this question in Help and Questions
Discussion options

You must be logged in to vote

In your case, it can work in this way.

const exampleStore = useExampleStore();
const foll = computed(() => exampleStore.fooBar)

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@Doctor-wu
Comment options

Answer selected by posva
@eliaschampi
Comment options

@Doctor-wu
Comment options

@posva
Comment options

@Doctor-wu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sOMarkus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
9 participants