diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-07-15 07:48:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-15 07:48:24 +0300 |
commit | 4ccbae7c30307bd19a9bd4afa9f2039aed9da94c (patch) | |
tree | d6fd20b75c8d41a222b0f513bb5c9fee49f1d6ca /src/components | |
parent | 1f82b1d5572c3944cf1f987e9090f8f626d67fcd (diff) | |
download | voidsky-4ccbae7c30307bd19a9bd4afa9f2039aed9da94c.tar.zst |
Fix perf issue on web - restore pop behaviour to tabs (#8620)
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Link.tsx | 2 | ||||
-rw-r--r-- | src/components/StarterPack/StarterPackCard.tsx | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/components/Link.tsx b/src/components/Link.tsx index 127b2edfb..6954be6a8 100644 --- a/src/components/Link.tsx +++ b/src/components/Link.tsx @@ -192,7 +192,7 @@ export function useLink({ navigation.dispatch(StackActions.replace(screen, params)) } else if (action === 'navigate') { // @ts-expect-error not typed - navigation.navigate(screen, params) + navigation.navigate(screen, params, {pop: true}) } else { throw Error('Unsupported navigator action.') } diff --git a/src/components/StarterPack/StarterPackCard.tsx b/src/components/StarterPack/StarterPackCard.tsx index 88d075b78..d889b2e72 100644 --- a/src/components/StarterPack/StarterPackCard.tsx +++ b/src/components/StarterPack/StarterPackCard.tsx @@ -156,7 +156,6 @@ export function Link({ return ( <BaseLink - action="push" to={`/starter-pack/${handleOrDid}/${rkey}`} label={_(msg`Navigate to ${record.name}`)} onPress={() => { |