mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
upgrade and refactor for react-query v5
This commit is contained in:
parent
dd70d30cd3
commit
8115963264
94 changed files with 1650 additions and 1750 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue