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 9abfeac commit 93853a8Copy full SHA for 93853a8
app/composables/atproto/useAtproto.ts
@@ -14,7 +14,7 @@ declare global {
14
var __useAtprotoMock: UseAtprotoReturn | undefined
15
}
16
17
-export const useAtproto = createSharedComposable(function useAtprotoImpl(): UseAtprotoReturn {
+function useAtprotoImpl(): UseAtprotoReturn {
18
if (import.meta.test && globalThis.__useAtprotoMock) {
19
return globalThis.__useAtprotoMock
20
@@ -37,4 +37,8 @@ export const useAtproto = createSharedComposable(function useAtprotoImpl(): UseA
37
38
39
return { user, pending, logout }
40
-})
+}
41
+
42
+export const useAtproto: () => UseAtprotoReturn = import.meta.test
43
+ ? useAtprotoImpl
44
+ : createSharedComposable(useAtprotoImpl)
0 commit comments