diff --git a/docs/framework/vue/reference/functions/shallow.md b/docs/framework/vue/reference/functions/shallow.md index 157a151..38a2393 100644 --- a/docs/framework/vue/reference/functions/shallow.md +++ b/docs/framework/vue/reference/functions/shallow.md @@ -25,4 +25,4 @@ function shallow(objA, objB): boolean ## Defined in -[index.ts:43](https://github.com/TanStack/store/blob/main/packages/vue-store/src/index.ts#L43) +[index.ts:47](https://github.com/TanStack/store/blob/main/packages/vue-store/src/index.ts#L47) diff --git a/docs/framework/vue/reference/functions/usestore.md b/docs/framework/vue/reference/functions/usestore.md index dc20e9e..361c86d 100644 --- a/docs/framework/vue/reference/functions/usestore.md +++ b/docs/framework/vue/reference/functions/usestore.md @@ -5,28 +5,54 @@ title: useStore # Function: useStore() +## useStore(store, selector) + ```ts -function useStore(store, selector): Readonly> +function useStore(store, selector?): Readonly> ``` -## Type Parameters +### Type Parameters • **TState** • **TSelected** = `NoInfer`\<`TState`\> -• **TUpdater** *extends* `AnyUpdater` = `AnyUpdater` - -## Parameters +### Parameters -• **store**: `Store`\<`TState`, `TUpdater`\> +• **store**: `Store`\<`TState`, `any`\> -• **selector** = `...` +• **selector?** -## Returns +### Returns `Readonly`\<`Ref`\<`TSelected`\>\> -## Defined in +### Defined in [index.ts:12](https://github.com/TanStack/store/blob/main/packages/vue-store/src/index.ts#L12) + +## useStore(store, selector) + +```ts +function useStore(store, selector?): Readonly> +``` + +### Type Parameters + +• **TState** + +• **TSelected** = `NoInfer`\<`TState`\> + +### Parameters + +• **store**: `Derived`\<`TState`, `any`\> + +• **selector?** + +### Returns + +`Readonly`\<`Ref`\<`TSelected`\>\> + +### Defined in + +[index.ts:16](https://github.com/TanStack/store/blob/main/packages/vue-store/src/index.ts#L16)