update navigation bar

This commit is contained in:
Ren Amamiya
2023-05-07 17:13:31 +07:00
parent 7a10d6a3d9
commit b7addfccfb
11 changed files with 70 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ export const useChannelProfile = (id: string, channelPubkey: string) => {
const { data: cache, isLoading } = useSWR(['channel-cache-profile', id], fetcher);
const { data, error } = useSWRSubscription(
!isLoading && !cache ? ['channel-profile', id] : null,
!isLoading && cache ? ['channel-profile', id] : null,
([, key], { next }) => {
// subscribe to channel
const unsubscribe = pool.subscribe(