kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
10 wiersze
224 B
TypeScript
10 wiersze
224 B
TypeScript
![]() |
import api from 'soapbox/api';
|
||
|
|
||
![]() |
import { useGetState } from './useGetState';
|
||
![]() |
|
||
|
/** Use stateful Axios client with auth from Redux. */
|
||
|
export const useApi = () => {
|
||
![]() |
const getState = useGetState();
|
||
|
return api(getState);
|
||
![]() |
};
|