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
Please add an ability to use Alova.js instead Axios for Orion.makeHttpClientUsing(...)
Something like that: makeHttpClientUsing(callback: () => AxiosInstance | Alova): Orion;
Orion.makeHttpClientUsing(() => {
// 1. Create an alova instance
const alovaInstance = createAlova({
// ReactHook is used to create ref status, including request status loading, response data data, request error object error, etc.
statesHook: ReactHook,
// request adapter, it is recommended to use the fetch request adapter
requestAdapter: GlobalFetch()
});
return alovaInstance;
});
The text was updated successfully, but these errors were encountered:
Please add an ability to use Alova.js instead Axios for Orion.makeHttpClientUsing(...)
Something like that:
makeHttpClientUsing(callback: () => AxiosInstance | Alova): Orion;
The text was updated successfully, but these errors were encountered: