You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@graasp/query-client

Package Overview
Dependencies
Maintainers
0
Versions
98
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graasp/query-client

React Query package to consume the Graasp API.


Version published
Maintainers
0
Created

Changelog

Source

3.17.0 (2024-07-24)

Features

  • check hasThumbnail on item for thumbnail (#850) (062ba4d)

Readme

Source

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 data
  • routines: message types used for notifications
  • API_ROUTES: object containing all endpoint routes
  • Api: api endpoints collection

configureQueryClient returns the following properties:

  • queryClient: query client property
  • QueryClientProvider: query client provider
  • hooks: object containing all the useQuerys
  • useMutation: hook for running mutations
  • ReactQueryDevtools: devtools component for the imported queryclient
  • dehydrate & 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

FAQs

Package last updated on 24 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc