v1.0.0-alpha.12
Pre-release
Pre-release
Features
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
//...
}