0.1.0 • Published 3 years ago

react-query-devtools-flipper v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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