This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
Entity and queries store release candidate 1
Pre-release
Pre-release
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);