react-query-native-devtools
v4.0.0
Published
Flipper client plug-in for [React Query](https://github.com/tannerlinsley/react-query)
Downloads
50,819
Readme
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>
);
}