-
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: export useStore in Solid, React, and Vue forms (#1063)
* fix: export useStore in Solid, React, and Vue forms * ci: apply automated fixes and generate docs --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
12e391e
commit 3971cf3
Showing
23 changed files
with
136 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
id: useStore | ||
title: useStore | ||
--- | ||
|
||
# Function: useStore() | ||
|
||
```ts | ||
function useStore<TState, TSelected, TUpdater>(store, selector?): TSelected | ||
``` | ||
|
||
## Type Parameters | ||
|
||
• **TState** | ||
|
||
• **TSelected** = `NoInfer`\<`TState`\> | ||
|
||
• **TUpdater** *extends* `AnyUpdater` = `AnyUpdater` | ||
|
||
## Parameters | ||
|
||
### store | ||
|
||
`Store`\<`TState`, `TUpdater`\> | ||
|
||
### selector? | ||
|
||
(`state`) => `TSelected` | ||
|
||
## Returns | ||
|
||
`TSelected` | ||
|
||
## Defined in | ||
|
||
node\_modules/.pnpm/@tanstack+react-store@0.6.1\_react-dom@18.3.1\_react@18.3.1\_\_react@18.3.1/node\_modules/@tanstack/react-store/dist/esm/index.d.ts:7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
id: useStore | ||
title: useStore | ||
--- | ||
|
||
# Function: useStore() | ||
|
||
```ts | ||
function useStore<TState, TSelected, TUpdater>(store, selector?): Accessor<TSelected> | ||
``` | ||
|
||
## Type Parameters | ||
|
||
• **TState** | ||
|
||
• **TSelected** = `NoInfer`\<`TState`\> | ||
|
||
• **TUpdater** *extends* `AnyUpdater` = `AnyUpdater` | ||
|
||
## Parameters | ||
|
||
### store | ||
|
||
`Store`\<`TState`, `TUpdater`\> | ||
|
||
### selector? | ||
|
||
(`state`) => `TSelected` | ||
|
||
## Returns | ||
|
||
`Accessor`\<`TSelected`\> | ||
|
||
## Defined in | ||
|
||
node\_modules/.pnpm/@tanstack+solid-store@0.6.0\_solid-js@1.9.3/node\_modules/@tanstack/solid-store/dist/esm/index.d.ts:8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
id: useStore | ||
title: useStore | ||
--- | ||
|
||
# Function: useStore() | ||
|
||
```ts | ||
function useStore<TState, TSelected, TUpdater>(store, selector?): Readonly<Ref<TSelected>> | ||
``` | ||
|
||
## Type Parameters | ||
|
||
• **TState** | ||
|
||
• **TSelected** = `NoInfer`\<`TState`\> | ||
|
||
• **TUpdater** *extends* `AnyUpdater` = `AnyUpdater` | ||
|
||
## Parameters | ||
|
||
### store | ||
|
||
`Store`\<`TState`, `TUpdater`\> | ||
|
||
### selector? | ||
|
||
(`state`) => `TSelected` | ||
|
||
## Returns | ||
|
||
`Readonly`\<`Ref`\<`TSelected`\>\> | ||
|
||
## Defined in | ||
|
||
node\_modules/.pnpm/@tanstack+vue-store@0.6.0\_vue@3.5.12\_typescript@5.7.2\_/node\_modules/@tanstack/vue-store/dist/esm/index.d.ts:8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from '@tanstack/form-core' | ||
export { useStore } from '@tanstack/vue-store' | ||
export * from './useField' | ||
export * from './useForm' |