1.0.3 • Published 2 years ago
@dck/rescript-react-query v1.0.3
rescript-react-query
ReScript bindings for @tanstack/react-query (targeted version : ^5.22.2)
Setup
- 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.jsonconfig
{
"bs-dependencies": ["@dck/rescript-react-query"]
}Usage
The functions can be accessed through ReactQuery module.
Simple
Basic
OptimisticUpdate
ReactSuspense
Basic
Development
Install deps
bun installCompiles files
bun run devRun tests through examples
bun run examplesRun local webserver
bun run examples-server