Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mantycore opened this issue Aug 9, 2022 · 0 comments

Comments

@mantycore
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant