You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
New features:
It is now possible to provide endpoints with default values for the params. (see docs).
It is now possible to provide config overrides in the hook and the hoc (see the config parameter in useApiData).
Added property dataFailed, which contains the body of a failed call.
The perform promise will now reject, when the request fails.
Added possibility to purge individual requests via the binding and the actions.
All function names containing ApiData, have been renamed to a name without ApiData. The old names are hereby deprecated and will be removed in a future release.
Breaking changes:
The data property no longer contains the data of a failed call.
The perform promise will now reject, when the request fails. This means that code depending on a failed response should be moved to the catch clause of the promise.
The third parameter of the useApiData hook, changed from instanceId string to an options object, solve this by placing the string in this object: { instanceId: 'myInstanceIdString' }
Deprecations:
All function names containing ApiData, have been renamed to a name without ApiData. The old names are hereby deprecated and will be removed in a future release.