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,
|
account,
|
||||||
_local: true,
|
_local: true,
|
||||||
options: {
|
options: {
|
||||||
|
placeholderData: (account._remote
|
||||||
|
? { ...account, id: undefined }
|
||||||
|
: account) as Mastodon.Account,
|
||||||
onSuccess: a => {
|
onSuccess: a => {
|
||||||
if (account._remote) {
|
if (account._remote) {
|
||||||
setQueryKey([
|
setQueryKey([
|
||||||
|
|
Loading…
Reference in New Issue