@graasp/query-client v3.8.0
Graasp Query Client
React Query package to consume the Graasp API.
Installation
Run the following to install the package in your project:
yarn add github:graasp/graasp-query-client.git
The package exposes the following properties:
DATA_KEYS
: keys used to refer to invalidate dataroutines
: message types used for notificationsAPI_ROUTES
: object containing all endpoint routesApi
: api endpoints collection
configureQueryClient
returns the following properties:
queryClient
: query client propertyQueryClientProvider
: query client providerhooks
: object containing all theuseQuery
suseMutation
: hook for running mutationsReactQueryDevtools
: devtools component for the imported queryclientdehydrate
&Hydrate
: necessary properties for SSR projects (ie: nextjs)
import { configureQueryClient } from '@graasp/query-client';
const prop = configureQueryClient({ API_HOST });
Development
Run yarn
to install this package's dependencies
Testing
Execute the following to run the tests in your project
yarn test
or
yarn test:watch
6 days ago
6 days ago
11 days ago
20 days ago
24 days ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
10 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
11 months ago
11 months ago
7 months ago
7 months ago
8 months ago
10 months ago
8 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
5 months ago
6 months ago
7 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago