svelte
Support request strategies in svelte through alova/svelte
.
import { createAlova } from 'alova';
import SvelteHook from 'alova/svelte';
const alovaInstance = createAlova({
// ...
statesHook: SvelteHook
});
After configuring statesHook
, you can use all client strategies.