Skip to content

Commit

Permalink
bump minimum solid-js version
Browse files Browse the repository at this point in the history
  • Loading branch information
marbemac committed Mar 9, 2023
1 parent 3d008f9 commit a8beb48
Show file tree
Hide file tree
Showing 11 changed files with 665 additions and 392 deletions.
2 changes: 1 addition & 1 deletion examples/solid/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@tanstack/solid-query": "^4.3.9",
"graphql": "^16.6.0",
"graphql-request": "^5.0.0",
"solid-js": "^1.6.2"
"solid-js": "^1.6.13"
},
"devDependencies": {
"typescript": "4.7.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/basic-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "MIT",
"dependencies": {
"@tanstack/solid-query": "^4.3.9",
"solid-js": "^1.6.2"
"solid-js": "^1.6.13"
},
"devDependencies": {
"typescript": "4.7.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/default-query-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "MIT",
"dependencies": {
"@tanstack/solid-query": "^4.3.9",
"solid-js": "^1.6.2"
"solid-js": "^1.6.13"
},
"devDependencies": {
"typescript": "4.7.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "MIT",
"dependencies": {
"@tanstack/solid-query": "^4.3.9",
"solid-js": "^1.6.2"
"solid-js": "^1.6.13"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^4.13.0",
Expand Down
12 changes: 6 additions & 6 deletions examples/solid/solid-start-streaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"esbuild": "^0.14.54",
"postcss": "^8.4.18",
"solid-start-node": "^0.2.0",
"typescript": "^4.8.4",
"vite": "^3.1.8"
"typescript": "^4.9.4",
"vite": "^4.1.4"
},
"dependencies": {
"@tanstack/solid-query": "^4.3.9",
"@tanstack/solid-query": "^5.0.0-alpha.3",
"@solidjs/meta": "^0.28.2",
"@solidjs/router": "^0.6.0",
"solid-js": "^1.6.9",
"solid-start": "^0.2.15",
"@solidjs/router": "^0.7.0",
"solid-js": "^1.6.13",
"solid-start": "^0.2.23",
"undici": "^5.11.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/solid-start-streaming/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Root() {
const queryClient = new QueryClient({
defaultOptions: {
queries: {
retry: 0,
retry: false,
},
},
})
Expand Down
4 changes: 4 additions & 0 deletions examples/solid/solid-start-streaming/src/routes/hydration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export default function Hydration() {
<th>isLoading</th>
<th>isStale</th>
<th>isSuccess</th>
<th>isError</th>
<th>error</th>
<th>fetchStatus</th>
<th>dataUpdatedAt</th>
</tr>
Expand Down Expand Up @@ -88,6 +90,8 @@ const QueryStateRow = (props: { context: string; query: QueryState }) => {
<td>{String(props.query.isLoading)}</td>
<td>{String(props.query.isStale)}</td>
<td>{String(props.query.isSuccess)}</td>
<td>{String(props.query.isError)}</td>
<td>{String(props.query.error)}</td>
<td>{String(props.query.fetchStatus)}</td>
<td>{String(props.query.dataUpdatedAt)}</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-visualizer": "^5.9.0",
"rollup-preset-solid": "^1.4.0",
"solid-js": "^1.5.7",
"solid-js": "^1.6.13",
"solid-testing-library": "^0.3.0",
"stream-to-array": "^2.3.0",
"ts-jest": "^29.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@tanstack/query-core": "workspace:*"
},
"peerDependencies": {
"solid-js": "^1.6.2"
"solid-js": "^1.6.13"
},
"peerDependenciesMeta": {}
}
2 changes: 1 addition & 1 deletion packages/solid-query/src/createBaseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function createBaseQuery<
)

onCleanup(() => {
if (!isServer && unsubscribe) {
if (unsubscribe) {
unsubscribe()
unsubscribe = null
}
Expand Down
Loading

0 comments on commit a8beb48

Please sign in to comment.