Skip to content

v1.0.0-alpha.12

Pre-release
Pre-release

Choose a tag to compare

@ognen ognen released this 12 Oct 13:11
· 117 commits to master since this release

Features

  • core Refresh effect, explicit read actions, better HTTP methods (#66) (cf9ee05)

BREAKING CHANGES

  • read action types have changed. Now are namespaced and can be found in actions.types.read. If you had any middleware listening on these actions, you might want to check it.
  • To better support API growth, he signature of readers has changed from (string, boolean) => Promise<ReadResponse> to (string, object) => Promise<ReadResponse>
    • previously a boolean flag indicating whether the read should issue a revalidating http request was passed as a second argument; now this flag can be found inside the second arg like so:
 function httpRead(uri, opts) {
   const { revalidate } = opts
  //...
}