1.0.3 • Published 3 months ago

@dck/rescript-react-query v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

rescript-react-query

ReScript bindings for @tanstack/react-query (targeted version : ^5.22.2)

Setup

  1. 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.

  1. Add it to your rescript.json config
{
  "bs-dependencies": ["@dck/rescript-react-query"]
}

Usage

The functions can be accessed through ReactQuery module.

Simple

Basic

OptimisticUpdate

ReactSuspense

Basic

Development

Install deps

bun install

Compiles files

bun run dev

Run tests through examples

bun run examples

Run local webserver

bun run examples-server
1.0.3

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago