Skip to content

Typing of useCollection generic should allow different types for collection resource and collection item resources #97

@mantycore

Description

@mantycore

Currently, useCollection hook generic uses the same Resource type for resource and items fields. This seems not right, because in most cases, these will be completely different types. The collection type can be empty or e.g. contain (as in our use case) information about pagination; the item type will contain the data fields for the individual items. Or am I missing something?

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