Skip to content

Add support for normalization (normalizr) #2

Description

@Nitemaeric
import { schema } from "normalizr"

const resourceSchema = new schema.Entity("resources")
const [resource] = useResource(resourceSchema, 1) // Should use the schema's key to create the path = /resources/1

This should be further extended to support normalizing collections so resource calls are fetched from the cache instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions