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

useHalResource return value update #45

Open
GomezIvann opened this issue Feb 13, 2023 · 0 comments
Open

useHalResource return value update #45

GomezIvann opened this issue Feb 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@GomezIvann
Copy link
Collaborator

Right now, the useHalResource hook returns an array with the specific properties needed by the user. How about, instead of returning an array, returning an object so the user can destructure the returned value in the order he wants, just by knowing the name of the properties of this object? It should be easier than remembering the certain position of each of them inside the current array.

@kukoc kukoc added the enhancement New feature or request label Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants