react-query-devtools-flipper
v0.1.0
Published
React Native client plugin for flipper-plugin-react-query-devtools
Downloads
8
Maintainers
Readme
react-query-devtools-flipper
React Native client plugin for flipper-plugin-react-query-devtools
Installation
npm install react-query-devtools-flipper react-native-flipper
# or
yarn add react-query-devtools-flipper react-native-flipper
Usage
import { useFlipperDevtools } from 'react-query-devtools-flipper';
import { QueryClient } from 'react-query';
const queryClient = new QueryClient();
function Component() {
useFlipperDevtools(queryClient);
return <View>{/*...*/}</View>;
}
The hook automatically handles only enabling the plugin in development environments.
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT