[Vuejs]-Pinia state is not reactive in v-if directive. Am I missing something?

1👍

I found that I am missing parentheses in the arrow function that returning the state object.

state: () => ({
    isUserLoggedIn: false
  }),

Thanks for the effort.

Leave a comment