-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(vike-solid-query): use
tsc
only for development and build
- Loading branch information
Showing
9 changed files
with
43 additions
and
84 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,14 @@ | ||
import { createComponent, type JSX } from "solid-js"; | ||
import { QueryClient, QueryClientProvider } from "@tanstack/solid-query"; | ||
import { usePageContext } from "vike-solid/usePageContext"; | ||
|
||
export default function Wrapper(props: { children?: JSX.Element }) { | ||
const pageContext = usePageContext(); | ||
|
||
return createComponent(QueryClientProvider, { | ||
client: new QueryClient(pageContext.config.queryClientConfig), | ||
get children() { | ||
return props.children; | ||
}, | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,3 +7,5 @@ declare global { | |
} | ||
} | ||
} | ||
|
||
export {}; |
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 was deleted.
Oops, something went wrong.
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,21 +1,17 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"moduleResolution": "node", | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"jsx": "preserve", | ||
"jsxImportSource": "solid-js", | ||
"allowJs": true, | ||
"types": ["vite/client"], | ||
"isolatedModules": true, | ||
"outDir": "./dist", | ||
"declaration": true, | ||
"module": "ES2022", | ||
"moduleResolution": "Bundler", | ||
"target": "ES2020", | ||
"lib": ["DOM", "DOM.Iterable", "ES2022"], | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"rootDir": "./" | ||
}, | ||
"include": ["src/*", "global.d.ts"] | ||
"allowSyntheticDefaultImports": true, | ||
"verbatimModuleSyntax": true, | ||
"strict": true, | ||
"declaration": true, | ||
"outDir": "./dist/" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.