-
-
Notifications
You must be signed in to change notification settings - Fork 614
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New store implementation as
store2.ts
(#2463)
* wip * wip * wip * wip * wip * wip * wip * wip * wip * cherry-pick #2462 * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * follow #2471 * expose store2 so that we can experiment it * follow #2472 * separate experimental export * Update src/vanilla/store2.ts Co-authored-by: Iwo Plaza <[email protected]> * refactor --------- Co-authored-by: Iwo Plaza <[email protected]>
- Loading branch information
Showing
7 changed files
with
760 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export { atom } from './vanilla/atom.ts' | ||
export type { Atom, WritableAtom, PrimitiveAtom } from './vanilla/atom.ts' | ||
export { createStore, getDefaultStore } from './vanilla/store2.ts' | ||
export type { | ||
Getter, | ||
Setter, | ||
ExtractAtomValue, | ||
ExtractAtomArgs, | ||
ExtractAtomResult, | ||
SetStateAction, | ||
} from './vanilla/typeUtils.ts' |
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,5 +1,6 @@ | ||
declare interface ImportMeta { | ||
env?: { | ||
MODE: string | ||
USE_STORE2?: string | ||
} | ||
} |
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
Oops, something went wrong.