From 06ebd2964ab68aa295f3385c188f40c33e3e0a23 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 18 Jun 2025 19:25:14 +0300 Subject: Fix linking to specific search results (#8520) * fix linking to bsky.app/search?q=xyz * add name to comment * skip if notfound --- src/lib/hooks/useNavigationDeduped.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/hooks') diff --git a/src/lib/hooks/useNavigationDeduped.ts b/src/lib/hooks/useNavigationDeduped.ts index dc18742c0..136e5fb96 100644 --- a/src/lib/hooks/useNavigationDeduped.ts +++ b/src/lib/hooks/useNavigationDeduped.ts @@ -14,6 +14,7 @@ export type DebouncedNavigationProp = Pick< | 'dispatch' | 'goBack' | 'getState' + | 'getParent' > export function useNavigationDeduped() { @@ -46,6 +47,9 @@ export function useNavigationDeduped() { getState: () => { return navigation.getState() }, + getParent: (...args: Parameters) => { + return navigation.getParent(...args) + }, }), [dedupe, navigation], ) -- cgit 1.4.1