This commit is contained in:
2023-06-21 15:28:17 +01:00
parent 9c88f2e28f
commit 6f0dc2e430
11 changed files with 154 additions and 47 deletions

6
src/hooks/login.ts Normal file
View File

@ -0,0 +1,6 @@
import { Login } from "index";
import { useSyncExternalStore } from "react";
export function useLogin() {
return useSyncExternalStore(c => Login.hook(c), () => Login.snapshot());
}