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>
  );
}

/react-query-native-devtools/

    Package Sidebar

    Install

    npm i react-query-native-devtools

    Weekly Downloads

    9,292

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    23.2 kB

    Total Files

    15

    Last publish

    Collaborators

    • bgaleotti