File tree Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -55,17 +55,6 @@ const inboxProfileSocialsQueryConfig = (inboxId: InboxId | undefined) => ({
55
55
// And automatic retries if there was an error fetching
56
56
refetchOnMount : false ,
57
57
staleTime : 1000 * 60 * 60 * 24 ,
58
- initialData : ( ) : IProfileSocials [ ] | null | undefined => {
59
- if ( ! inboxId ) {
60
- return undefined ;
61
- }
62
- if ( mmkv . contains ( inboxProfileSocialsQueryStorageKey ( inboxId ) ) ) {
63
- const data = JSON . parse (
64
- mmkv . getString ( inboxProfileSocialsQueryStorageKey ( inboxId ) ) !
65
- ) as IProfileSocials [ ] ;
66
- return data ;
67
- }
68
- } ,
69
58
initialDataUpdatedAt : 0 ,
70
59
persister : profileSocialsPersister ,
71
60
} ) ;
Original file line number Diff line number Diff line change @@ -54,14 +54,6 @@ const profileSocialsQueryConfig = (peerAddress: string) => ({
54
54
// And automatic retries if there was an error fetching
55
55
refetchOnMount : false ,
56
56
staleTime : 1000 * 60 * 60 * 24 ,
57
- initialData : ( ) : ProfileSocialsData => {
58
- if ( mmkv . contains ( profileSocialsQueryStorageKey ( peerAddress ) ) ) {
59
- const data = JSON . parse (
60
- mmkv . getString ( profileSocialsQueryStorageKey ( peerAddress ) ) !
61
- ) as ProfileSocialsData ;
62
- return data ;
63
- }
64
- } ,
65
57
initialDataUpdatedAt : 0 ,
66
58
persister : profileSocialsPersister ,
67
59
} ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import mmkv from "@/utils/mmkv";
8
8
import logger from "@/utils/logger" ;
9
9
import { QueryState } from "@tanstack/query-core" ;
10
10
11
+ // Adds some types, otherwise everything is unknown
11
12
export type GenericPersistedQuery < T , E = Error > = Omit <
12
13
PersistedQuery ,
13
14
"state"
You can’t perform that action at this time.
0 commit comments