We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b02eb7b commit b957c17Copy full SHA for b957c17
src/lib/swr.ts
@@ -4,7 +4,6 @@ import { writable } from "svelte/store";
4
5
import { swrMachine } from "./machine";
6
import { getClient } from "./context";
7
-import { newClient } from "./client";
8
9
interface SWROptions<T> {
10
enabled?: boolean;
@@ -45,7 +44,7 @@ const defaultSWRParams = {
45
44
};
46
47
export function useSWR<T>(): SWRStore<T> {
48
- const client = getClient() || newClient({});
+ const client = getClient();
49
50
const store = writable<Context<T>>({ ...defaultSWRStore });
51
0 commit comments