Releases: morrys/react-relay-offline
Releases · morrys/react-relay-offline
v0.7.0
Improved
- @wora/relay-store integration
- @wora/relay-offline integration
- add TTL parameter in QueryRenderer
- add all the information of the mutation saved in the offline store are inserted into the "metadata" field of the CacheConfig so that they can be used during communication with the server
v0.6.0
Improved
-
Offline Options
-
add
onPublish
option, possibility of intercepting the saving in the offline store -
add
finish
option, callback at the end of the processing of offline executions
-
-
adding both the serial and parallel execution of offline mutations and also the possibility of mixing them, default serial
-
integration @wora/offline-first
Experimental
- useOffline: utility hooks to view the offline store
v0.5.0
Improved
- redux redux-thunk redux-offline dependencies elimated
- rollback of the store cache when the offline mutation execution fails
- simplified environment creation
- added offlineOptions
const offlineOptions = {
manualExecution: false, //optional
network: networkOffline, //optional
onComplete: (options ) => { //optional
const { id, offlinePayload, snapshot } = options;
console.log("onComplete", options);
return true;
},
onDiscard: ( options ) => { //optional
const { id, offlinePayload , error } = options;
console.log("onDiscard", options);
return true;
}
};
Fixed
- renderer optimization
- cached lookup in query fetcher
v.0.4.0
Breaking
- react-native:
- yarn add
@react-native-community/netinfo
- react-native link
@react-native-community/netinfo
- yarn add
Improved
- @wora/detect-network
- the redux-offline detect network feature is no longer used.
- useIsConnected and useNetInfo hooks out-of-box
- changed dependence from cache-persist to @wora/cache-persist
Fixed
- iOS AsyncStorage
- commitMutation now return Disposable
v0.3.0
v.0.2.0
fix(QueryRenderer Cache)
Fixed
- dispose the pending request before retrieving the selectionReferences in order to creating a new instance of ReactRelayQueryFetcher.