ReScript bindings for @tanstack/react-query (targeted version : ^5.22.2
)
- Install the module
bun install @dck/rescript-react-query
# or
yarn install @dck/rescript-react-query
# or
npm install @dck/rescript-react-query
ℹ️ Remember to install @tanstack/react-query-devtools
module if you want to use ReactQueryDevtools
.
- Add it to your
rescript.json
config
{
"bs-dependencies": ["@dck/rescript-react-query"]
}
The functions can be accessed through ReactQuery
module.
Install deps
bun install
Compiles files
bun run dev
Run tests through examples
bun run examples
Run local webserver
bun run examples-server