Function: setFetchStateAdapter()
Imported from
@react-logic/utilssetFetchStateAdapter(
adapter):void
Defined in: utils/src/lib/fetch-adapter.ts:87
Replace the global FetchAdapter used by every fetchState call that
doesn't pass its own fetcher override. Call once at app boot — e.g.
to route every reactive fetch through axios:
import axios from 'axios';
import { setFetchStateAdapter, createAxiosFetchAdapter } from '@react-logic/utils';
setFetchStateAdapter(createAxiosFetchAdapter(axios));
Parameters
Returns
void