-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Currently, passing a ref to the state is unwrapped because the store is a reactive object but the types do not reflect it:
const useStore = defineStore({ state: () => ({ n: ref(0) }) })
const store = useStore()
store.n // Ref<number> instead of number (the actual type)
This is useful to use external use* functions: #485 (reply in thread)