vue component doesn’t update after state changes in pinia store
storeToRefs() You need to use storeToRefs() to extract properties from the store while keeping those properties reactive. import { storeToRefs } from ‘pinia’ const themeStore = useThemeStore(); const { isDark } = storeToRefs(themeStore); Computed property Thanks to @Fennec for suggesting the computed way of getting reactive state. Although I don’t recommend this method since there … Read more