PlexusJS/plexus

Add a `useAPI()` hook

Pckool opened this issue · 0 comments

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.