You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client app's API client is written by hand. Investigate what it would take to generate an API client from the routes defined the server app's routes.
Requirements/Expected Behavior
Generate an API client that is compatible with React Hooks. It should support the following use cases
Note: The API doesn't necessarily have to be consistent with the examples below.
Call directly from useEffect()
exportfunctionMyComponent(){useEffect(()=>{makeTitanApiRequest(ListFileEntryTypes).then(/* do something */);});return(...);}
Description
The client app's API client is written by hand. Investigate what it would take to generate an API client from the routes defined the server app's routes.
Requirements/Expected Behavior
Generate an API client that is compatible with React Hooks. It should support the following use cases
Call directly from
useEffect()
Wrap as a React hook
The text was updated successfully, but these errors were encountered: