mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Reuse account info when navigating
This commit is contained in:
@ -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([
|
||||||
|
Reference in New Issue
Block a user