Reuse account info when navigating

This commit is contained in:
xmflsct 2023-01-29 21:53:13 +01:00
parent 83cd5d4eb0
commit 062e6825b5
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ const TabSharedAccount: React.FC<TabSharedStackScreenProps<'Tab-Shared-Account'>
account,
_local: true,
options: {
placeholderData: (account._remote
? { ...account, id: undefined }
: account) as Mastodon.Account,
onSuccess: a => {
if (account._remote) {
setQueryKey([