diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-06-18 19:25:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-18 09:25:14 -0700 |
commit | 06ebd2964ab68aa295f3385c188f40c33e3e0a23 (patch) | |
tree | c673a1770bce1d313666b5e9f77cea6e7c5d8239 /src/lib/hooks | |
parent | 3304cd04249a2c39fa628b0339d6770bd26f8392 (diff) | |
download | voidsky-06ebd2964ab68aa295f3385c188f40c33e3e0a23.tar.zst |
Fix linking to specific search results (#8520)
* fix linking to bsky.app/search?q=xyz * add name to comment * skip if notfound
Diffstat (limited to 'src/lib/hooks')
-rw-r--r-- | src/lib/hooks/useNavigationDeduped.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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<typeof navigation.getParent>) => { + return navigation.getParent(...args) + }, }), [dedupe, navigation], ) |