{"repo":"molindo/react-apollo-network-status","free":true,"listed":false,"github":"https://github.com/molindo/react-apollo-network-status","clone":"git clone https://github.com/molindo/react-apollo-network-status.git","description":"Global handling for loading and error states","language":"TypeScript","stars":239,"topics":["react","apollo-client"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"react-apollo-network-status Brings information about the global network status from Apollo into React. This library helps with implementing global loading indicators like progress bars or adding global error handling, so you don't have to respond to every error in a component that invokes an operation. Apollo Client version compatibility react-apollo-network-status Apollo Client --------------------------- ------------- 7 4 6 4 5 3 4, 3, 2 2 1 1 Usage Returned data The hook useApolloNetworkStatus provides an object with the following properties: Subscriptions currently don't affect the status returned by useApolloNetworkStatus . Useful applications are for example integrating with NProgress.js or showing errors with snackbars from Material UI. Advanced usage Limit handling to specific operations The default configuration enables an opt-out behaviour per operation by setting a context variable: You can configure an opt-in behaviour by specifying an operation whitelist like this: Custom state You can fully control how operations are mapped to state by providing a custom reducer to a separate low-level hook.","default_branch":null,"files":null,"tree":[],"storefront":"/r/molindo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/molindo/react-apollo-network-status/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}