better naming
This commit is contained in:
parent
ebe64b828b
commit
0ff6ee2fc8
2 changed files with 8 additions and 4 deletions
|
@ -9,6 +9,7 @@ import {sanitizeDisplayName} from 'lib/strings/display-names'
|
|||
import {sanitizeHandle} from 'lib/strings/handles'
|
||||
import {makeProfileLink} from 'lib/routes/links'
|
||||
import {useProfileQuery} from '#/state/queries/profile'
|
||||
import {STALE} from '#/state/queries'
|
||||
|
||||
export function UserInfoText({
|
||||
type = 'md',
|
||||
|
@ -29,7 +30,10 @@ export function UserInfoText({
|
|||
attr = attr || 'handle'
|
||||
failed = failed || 'user'
|
||||
|
||||
const {data: profile, isError} = useProfileQuery({did, dontInvalidate: true})
|
||||
const {data: profile, isError} = useProfileQuery({
|
||||
did,
|
||||
staleTime: STALE.INFINITY,
|
||||
})
|
||||
|
||||
let inner
|
||||
if (isError) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue