mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 21:16:17 +02:00
upgrade and refactor for react-query v5
This commit is contained in:
@@ -91,7 +91,8 @@ export const useAuthStore = createWithEqualityFn<AuthSlice>()(
|
||||
|
||||
export const useCurrentServerId = () => useAuthStore((state) => state.currentServer)?.id || '';
|
||||
|
||||
export const useCurrentServer = () => useAuthStore((state) => state.currentServer);
|
||||
export const useCurrentServer = () =>
|
||||
useAuthStore((state) => state.currentServer) as ServerListItem;
|
||||
|
||||
export const useServerList = () => useAuthStore((state) => state.serverList);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user