{"repo":"morrys/react-relay-offline","free":true,"listed":false,"github":"https://github.com/morrys/react-relay-offline","clone":"git clone https://github.com/morrys/react-relay-offline.git","description":"TypeScript library files for Relay Modern Offline","language":"TypeScript","stars":237,"topics":["react","relay-modern","offline","indexeddb","typescript","react-native","relay"],"license":"MIT","category":"mobile-apps","readme_excerpt":"--- id: react-relay-offline title: Getting Started --- React Relay Offline React Relay Offline is a extension of Relay for offline capabilities Installation React Web Install react-relay and react-relay-offline using yarn or npm: Installation React Native Install react-relay and react-relay-offline using yarn or npm: You then need to do some extra configurations to run netinfo package with React Native. Please check @react-native-community/netinfo official README.md to get the full step guide. Main Additional Features - automatic persistence and rehydration of the store (AsyncStorage, localStorage, IndexedDB) - configuration of persistence - custom storage - different key prefix (multi user) - serialization: JSON or none - fetchPolicy network-only, store-and-network, store-or-network, store-only - management and utilities for network detection - automatic use of the policy store-only when the application is offline - optimization in store management and addition of TTL to queries in the store - offline mutation management - backup of mutation changes - update and publication of the mutation changes in the store - persistence of mutation information performed - automatic execution of mutations persisted when the application returns online - configurability of the offline mutation execution network - onComplete callback of the mutation performed successfully - onDiscard callback of the failed mutation Contributing - Give a star to the repository and share it , you will help the","default_branch":null,"files":null,"tree":[],"storefront":"/r/morrys","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/morrys/react-relay-offline/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."}