Getter for testing presence of items in an array always false #2095
-
I am new to Pinia but loving it so far, it's so much easier to grasp than Vuex but I am struggling with one thing. Take the following basic store...
When adding the store in my components and accessing the getters they are always false, even when there are items in the array and I can't work out why. Using developer tools I can see the presence of the items in the array. |
Beta Was this translation helpful? Give feedback.
Answered by
ProNotion
Mar 22, 2023
Replies: 1 comment
-
I've realised the error of my ways and it's nothing to do with Pinia and everything to do with a mistake I made in accessing items in the array. Should be:
instead of
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ProNotion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've realised the error of my ways and it's nothing to do with Pinia and everything to do with a mistake I made in accessing items in the array.
Should be:
instead of