-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54c22b5
commit 53d5964
Showing
10 changed files
with
41 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": true, | ||
"fixed": [["helux", "@helux/core", "@helux/hooks", "@helux/hooks-impl", "@helux/types", "@helux/utils"]], | ||
"fixed": [["helux", "@helux/core", "@helux/openinula", "@helux/hooks", "@helux/hooks-impl", "@helux/types", "@helux/utils"]], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "master", | ||
|
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,6 +1,6 @@ | ||
/* | ||
|------------------------------------------------------------------------------------------------ | ||
| [email protected].0 | ||
| [email protected].2 | ||
| A state library core that integrates atom, signal, collection dep, derive and watch, | ||
| it supports all react like frameworks ( including react 18 ). | ||
|------------------------------------------------------------------------------------------------ | ||
|
@@ -68,7 +68,7 @@ import type { | |
} from './base'; | ||
|
||
export declare const cst: { | ||
VER: '4.1.0'; | ||
VER: '4.1.2'; | ||
LIMU_VER: string; | ||
EVENT_NAME: { | ||
ON_DATA_CHANGED: 'ON_DATA_CHANGED'; | ||
|
@@ -261,7 +261,7 @@ export function watchEffect( | |
* }); | ||
* ``` | ||
*/ | ||
export function useAtom<T = any>( | ||
export function useAtom<T extends SharedState = any>( | ||
sharedState: T, | ||
options?: IUseSharedStateOptions<T>, | ||
): [ | ||
|
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import { atom, share, useAtom, useShared } from '../helux'; | ||
import { atom } from '../helux'; | ||
import { makeTest } from './deps.make'; | ||
|
||
makeTest({ label: 'useAtom', atom, useAtom }); | ||
|
||
makeTest({ label: 'useShared', atom: share as any, useAtom: useShared as any }); | ||
makeTest({ label: 'useAtom', atom }); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.