This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
Releases: teamleadercrm/react-hooks-api
Releases · teamleadercrm/react-hooks-api
[0.1.0-rc2] - 2019-12-02
🐛 Fixed
- Fixed a bug that caused entities to be overwritten instead of enriched #148
Entity and queries store release candidate 1
In this release an entity and query store has been added.
💥Breaking changes
- Sideloaded data is now automatically merged into the entity it belongs to. This means the signature of the object returned by useQuery has changed. See below or consult the README for more information.
type Object = {
// The entity or list of entities
// Can also be calculated data (see projectItems.report)
data: Entity || Array<Entity> || NonEntity;
// Metadata returned by the request
meta: any
}
const object: Object = useQuery(query);
Maintenance release
- Upgraded some dependencies, some of which involving security vulnerabilities
Add new ignoreCache option
- This option can be used on an individual
useQuery
level to ignore the store and always refresh requests
Fix: redux context
Fixed
- Overwriting an existing redux context
Initial release
🎉 Initial release