[🐴] Invalidate list convos query on block (#4171)
* more memoization * invalidate listconvos query on block
This commit is contained in:
parent
b937372325
commit
3ca41e4efb
2 changed files with 22 additions and 18 deletions
|
@ -25,6 +25,7 @@ import {STALE} from '#/state/queries'
|
|||
import {resetProfilePostsQueries} from '#/state/queries/post-feed'
|
||||
import {updateProfileShadow} from '../cache/profile-shadow'
|
||||
import {useAgent, useSession} from '../session'
|
||||
import {RQKEY as RQKEY_LIST_CONVOS} from './messages/list-converations'
|
||||
import {RQKEY as RQKEY_MY_BLOCKED} from './my-blocked-accounts'
|
||||
import {RQKEY as RQKEY_MY_MUTED} from './my-muted-accounts'
|
||||
|
||||
|
@ -414,6 +415,7 @@ export function useProfileBlockMutationQueue(
|
|||
updateProfileShadow(queryClient, did, {
|
||||
blockingUri: finalBlockingUri,
|
||||
})
|
||||
queryClient.invalidateQueries({queryKey: RQKEY_LIST_CONVOS})
|
||||
},
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue