feat: backend api

This commit is contained in:
2024-11-26 15:29:18 +00:00
parent daa640068b
commit 3c7736dae7
34 changed files with 1147 additions and 697 deletions

View File

@ -3,10 +3,7 @@ import { Login } from "../login";
export default function useLogin() {
return useSyncExternalStore(
(c) => {
Login?.on("change", c);
return () => Login?.off("change", c);
},
() => Login,
(c) => Login.hook(c),
() => Login.snapshot(),
);
}