-
-
Notifications
You must be signed in to change notification settings - Fork 92
Integrate Alien Signals #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
baeda66
Use XState Store
davidkpiano b1b75ee
Convert tests
davidkpiano 2866b9f
Angular
davidkpiano 6e09e12
Preact
davidkpiano f7b36fc
Solid
davidkpiano 76f3443
Svelte
davidkpiano cae9a74
Vue
davidkpiano f7b7ee0
Vue (again)
davidkpiano e9297a5
ci: apply automated fixes and generate docs
autofix-ci[bot] 646875c
WIP: move implementation into store
davidkpiano 7b0598a
Make all tests pass
davidkpiano 7611dd8
createAtom -> createStore
davidkpiano 8995416
Bye for now
davidkpiano 6a0eb7e
Merge branch 'main' into davidkpiano/store
davidkpiano 7dd832c
ci: apply automated fixes and generate docs
autofix-ci[bot] a96fbed
Update TS versions
davidkpiano d0a6100
Fix eslint type issues
davidkpiano a3af0a0
Trying to fix versions
davidkpiano 4d04c0c
Fix sherif
davidkpiano e94d573
ci: apply automated fixes and generate docs
autofix-ci[bot] bc44d6a
So close
davidkpiano 6b3fe55
Merge branch 'davidkpiano/store' of https://github.com/davidkpiano/stβ¦
davidkpiano 54fa9c4
I'm trying
davidkpiano 366c183
WORK
davidkpiano f5a7a88
ci: apply automated fixes and generate docs
autofix-ci[bot] b3559c9
It's GREEEEENNN
davidkpiano ac9bb3a
Merge branch 'davidkpiano/store' of https://github.com/davidkpiano/stβ¦
davidkpiano 5f8fae6
ci: apply automated fixes and generate docs
autofix-ci[bot] 8af7ebf
Trying this
davidkpiano 71c157b
Hmm
davidkpiano f729c87
Fix types export
lachlancollins c6c1220
Remove extra command in test:build
lachlancollins 9e7cef4
Apply suggestion from @davidkpiano
davidkpiano bacff9d
Add changeset
davidkpiano 9a9600c
Merge branch 'davidkpiano/store' of https://github.com/davidkpiano/stβ¦
davidkpiano 60396a1
React useSelector -> useStore
davidkpiano 6bcd72e
ci: apply automated fixes and generate docs
autofix-ci[bot] 3096bf2
Fix Issues with Derived Fields not Retriggering (#274)
crutchcorn f4794bb
ci: Version Packages (#275)
github-actions[bot] 7065975
Merge branch 'main' into davidkpiano/store
crutchcorn 4d46903
chore: add batch method
crutchcorn f43a70c
ci: apply automated fixes and generate docs
autofix-ci[bot] fb42b02
chore: treat package bumps as "minor"
crutchcorn 1561472
docs: improve mention of subscription
crutchcorn 0dbb7be
ci: apply automated fixes and generate docs
autofix-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,24 @@ | ||
| --- | ||
| '@tanstack/angular-store': minor | ||
| '@tanstack/preact-store': minor | ||
| '@tanstack/svelte-store': minor | ||
| '@tanstack/react-store': minor | ||
| '@tanstack/solid-store': minor | ||
| '@tanstack/vue-store': minor | ||
| '@tanstack/store': minor | ||
| --- | ||
|
|
||
| ## Breaking changes | ||
|
|
||
| - `new Store()` is now `createStore()` | ||
| - `new Derived()` is now a derived `createStore()`: | ||
| ```ts | ||
| const derived = createStore(() => store.state * 2) | ||
| ``` | ||
| - `new Effect()` removed in favor of `store.subscribe()`: | ||
| ```ts | ||
| const { unsubscribe } = store.subscribe(() => { | ||
| console.log(store.state) | ||
| }) | ||
| ``` | ||
| - Uses [alien-signals](https://github.com/nicepkg/alien-signals) under the hood for efficient reactivity | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link looks broken, isn't it this one instead?
https://github.com/stackblitz/alien-signals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops. Yeah, that's right