Repository navigation
Solid store solid 2 #404
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
base: main
Are you sure you want to change the base?
Solid store solid 2 #404
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "mode": "pre", | ||
| "tag": "rc" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| '@tanstack/solid-store': minor | ||
| --- | ||
|
|
||
| Support Solid 2. `@tanstack/solid-store` now requires `solid-js` 2 (`>=2.0.0-rc.19 <3.0.0`); stay on 0.11.x for Solid 1. | ||
|
|
||
| - `useSelector` (and `useAtom`, `useStore`, `_useStore`) work unchanged. As with every Solid 2 signal, a value read right after a store write outside a reactive scope shows up after the next flush (`flush()` from `solid-js`, or the next microtask). | ||
| - `createStoreContext`'s `StoreProvider` renders the Solid 2 context directly and no longer needs a JSX runtime, so the adapter depends on `solid-js` only. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,12 +9,13 @@ | |
| "preview": "vite preview" | ||
| }, | ||
| "dependencies": { | ||
| "@solidjs/web": "^2.0.0-rc.19", | ||
| "@tanstack/solid-store": "^0.11.2", | ||
| "solid-js": "^1.9.12" | ||
| "solid-js": "^2.0.0-rc.19" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| }, | ||
| "devDependencies": { | ||
| "@solidjs/vite-plugin": "^3.0.0-next.51", | ||
| "typescript": "6.0.3", | ||
| "vite": "^8.0.8", | ||
| "vite-plugin-solid": "^2.11.12" | ||
| "vite": "^8.0.8" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| import { render } from 'solid-js/web' | ||
| import { render } from '@solidjs/web' | ||
| import { | ||
| createAtom, | ||
| createStore, | ||
|
|
||
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.
Script executed:
Repository: TanStack/store
Length of output: 2931
Point Solid 2 users to the
rctag.While prerelease mode is active,
npm install @tanstack/solid-storeresolves to thelatesttag, which stays on the Solid 1 line (0.11.x). Changesets publishes prereleases under the dist-tag set in.changeset/pre.json, which isrc. Solid 2 users who follow this command get the 0.11 adapter. Add thercinstall command for Solid 2 users until the stable 0.12 release is promoted tolatest.📝 Suggested docs change
```sh npm install @tanstack/solid-store +npm install @tanstack/solid-store@rc