This commit is contained in:
Shusui MOYATANI
2023-06-06 19:40:50 +09:00
parent fd80c92b83
commit 188475427b
14 changed files with 331 additions and 131 deletions

View File

@@ -74,7 +74,7 @@ const getProfile = ({
return timeout(15000, `useProfile: ${pubkey}`)(promise);
};
export const useProfile = (propsProvider: () => UseProfileProps | null): UseProfile => {
const useProfile = (propsProvider: () => UseProfileProps | null): UseProfile => {
const queryClient = useQueryClient();
const props = createMemo(propsProvider);
const genQueryKey = createMemo((): UseProfileQueryKey => ['useProfile', props()] as const);