react-query-native-devtools
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

React Query Native Devtools

Flipper client plug-in for React Query

Installation

$ npm i --save-dev react-query-native-devtools react-native-flipper
# or
$ yarn add --dev react-query-native-devtools react-native-flipper

Usage

Register the plugin in your application:

import * as React from 'react';
import { QueryClient, QueryClientProvider } from 'react-query';

const queryClient = new QueryClient();

if (__DEV__) {
  import('react-query-native-devtools').then(({ addPlugin }) => {
    addPlugin({ queryClient });
  });
}

function App() {
  return (
    <QueryClientProvider client={queryClient}>
      <MyReactQueryApp />
    </QueryClientProvider>
  );
}

Dependencies (1)

Dev Dependencies (12)

Package Sidebar

Install

npm i react-query-native-devtools

Weekly Downloads

10,759

Version

4.0.0

License

MIT

Unpacked Size

23.2 kB

Total Files

15

Last publish

Collaborators

  • bgaleotti