Fix perf issue on web - restore pop behaviour to tabs (#8620)
This commit is contained in:
@@ -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.')
|
||||
}
|
||||
|
||||
@@ -156,7 +156,6 @@ export function Link({
|
||||
|
||||
return (
|
||||
<BaseLink
|
||||
action="push"
|
||||
to={`/starter-pack/${handleOrDid}/${rkey}`}
|
||||
label={_(msg`Navigate to ${record.name}`)}
|
||||
onPress={() => {
|
||||
|
||||
Reference in New Issue
Block a user