Skip to content

Unable to use setMapStoreSuffix for mapStores in Options API in Nuxt #1097

Discussion options

You must be logged in to vote

You need to ensure the set store suffix function is called before your component gets mounted. In your case, you should directly import the useCartStore from ~/stores instead of ~/stores/cart

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by ferferga
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 #1095 on February 26, 2022 00:23.