mirror of https://github.com/tooot-app/app
Reuse account info when navigating
This commit is contained in:
parent
83cd5d4eb0
commit
062e6825b5
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue