Skip to content

Releases: morrys/react-relay-offline

v0.7.0

20 Jul 15:29
Compare
Choose a tag to compare

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

13 Jul 15:10
Compare
Choose a tag to compare

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

22 Jun 16:42
a3a179e
Compare
Choose a tag to compare

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

12 Jun 18:20
Compare
Choose a tag to compare

Breaking

  • react-native:
    • yarn add @react-native-community/netinfo
    • react-native link @react-native-community/netinfo

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

08 Jun 14:23
Compare
Choose a tag to compare

Improved

  • cache-persist integration
  • simplifying the creation of the environment

Experiment

  • callbackOffline functions

Fixed

  • QueryRenderer refresh
  • updater functions

v.0.2.0

18 May 17:05
473c597
Compare
Choose a tag to compare

Improved

  • Add React hook

Fixed

  • Garbage Collector

fix(QueryRenderer Cache)

13 May 18:22
Compare
Choose a tag to compare

Fixed

  • dispose the pending request before retrieving the selectionReferences in order to creating a new instance of ReactRelayQueryFetcher.

v0.1.1

02 May 19:35
Compare
Choose a tag to compare

Fixed

  • react-native detect network

v.0.1.0

01 May 21:06
Compare
Choose a tag to compare

Fixed

  • IndexedDB depenency for react-native

Improved

  • Reduced dependency from idb
  • Offline Store customizable
  • Added properties to the QueryRenderer

v0.0.2

30 Apr 12:53
Compare
Choose a tag to compare

Improved

  • Added the ability to recover the store offline from the environment
  • Compatibility with version 3.0.0 and 4.0.0 of react-relay

Fixed

  • Update the retainTime only when a query is executed