OK. So, if `getFoo` is a function, and `Foo` state, this pattern is bad? const { Foo } = storeToRefs(useStore()) const { getFoo } = useStore()
OK. So, if `getFoo` is a function, and `Foo` state, this pattern is bad? const { Foo } = storeToRefs(useStore()) const { getFoo } = useStore()
4
3
47
5K
7
@CodingWithCego I wouldn’t say bad, I would say unnecessary. Having the store variable gives context eg cart = useCart(); cart.clear()