Query Docs
Getting Started
AI/LLM: This documentation page is available in plain markdown format at/query/latest/docs/framework/solid/installation.md
Getting Started
Installation
You can install Solid Query via NPM, or a good ol' <script> via ESM.sh.
NPM#
shell
npm i @tanstack/solid-queryor
shell
pnpm add @tanstack/solid-queryor
shell
yarn add @tanstack/solid-queryor
shell
bun add @tanstack/solid-queryWanna give it a spin before you download? Try out the simple or basic examples!
CDN#
If you're not using a module bundler or package manager, you can also use this library via an ESM-compatible CDN such as ESM.sh. Simply add a <script type="module"> tag to the bottom of your HTML file:
html
<script type="module">
import { QueryClient } from 'https://esm.sh/@tanstack/solid-query'
</script>Requirements#
Solid Query is optimized for modern browsers. It is compatible with the following browsers config
plaintext
Chrome >= 91
Firefox >= 90
Edge >= 91
Safari >= 15
iOS >= 15
Opera >= 77Depending on your environment, you might need to add polyfills. If you want to support older browsers, you need to transpile the library from node_modules yourselves.