Remove useChannels.

Add servers to MobX.
This commit is contained in:
Paul
2021-07-29 18:49:49 +01:00
parent 411fac2527
commit bde9a2e8f7
4 changed files with 88 additions and 19 deletions

View File

@@ -77,13 +77,6 @@ function useObject(
: map.toArray();
}
export function useChannels(ids?: string[], context?: HookContext) {
return useObject("channels", ids, context) as (
| Readonly<Channels.Channel>
| undefined
)[];
}
export function useServer(id?: string, context?: HookContext) {
if (typeof id === "undefined") return;
return useObject("servers", id, context) as