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

Add a useAPI() hook #21

Open
Pckool opened this issue Jul 2, 2022 · 0 comments
Open

Add a useAPI() hook #21

Pckool opened this issue Jul 2, 2022 · 0 comments
Assignees

Comments

@Pckool
Copy link
Contributor

Pckool commented Jul 2, 2022

We could create a useAPI() hook for react that accepts an APIInstance and returns similar results to the library 'react-query'. We could return the data from the query, plus things like isLoading or isError, and remove the properties related to the request status. Not sure about that last part lol.

@Pckool Pckool self-assigned this Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant