| /expo/packages/expo-router/build/ |
| H A D | hooks.js | 6 exports.useLocalSearchParams = exports.useGlobalSearchParams = exports.usePathname = exports.useSeg… 78 function useGlobalSearchParams() { function 81 exports.useGlobalSearchParams = useGlobalSearchParams;
|
| H A D | exports.d.ts | 2 export { useRouter, useUnstableGlobalHref, usePathname, useGlobalSearchParams, useLocalSearchParams…
|
| H A D | hooks.d.ts | 43 export declare function useGlobalSearchParams<TParams extends SearchParams = SearchParams>(): Parti…
|
| H A D | exports.js | 3 …on = exports.useSegments = exports.useLocalSearchParams = exports.useGlobalSearchParams = exports.… 12 …alSearchParams", { enumerable: true, get: function () { return hooks_1.useGlobalSearchParams; } });
|
| H A D | exports.js.map | 1 …port {\n useRouter,\n useUnstableGlobalHref,\n usePathname,\n useGlobalSearchParams,\n useLoc…
|
| H A D | hooks.js.map | 1 …useGlobalSearchParams<\n TParams extends SearchParams = SearchParams,\n>(): Partial<TParams> {\n …
|
| /expo/packages/@expo/cli/src/start/server/type-generation/__typetests__/ |
| H A D | route.test.ts | 4 useGlobalSearchParams, 171 expectType<Record<'color', string>>(useGlobalSearchParams<Record<'color', string>>()); 173 useGlobalSearchParams<'/colors/[color]'>() 176 expectError(useGlobalSearchParams<'/invalid'>()); 177 expectError(useGlobalSearchParams<Record<'custom', Function>>());
|
| /expo/apps/router-e2e/__e2e__/server/app/blog/ |
| H A D | [post].tsx | 1 import { useGlobalSearchParams } from 'expo-router'; 5 const params = useGlobalSearchParams();
|
| /expo/apps/router-e2e/__e2e__/static-rendering/app/ |
| H A D | [post].tsx | 1 import { useGlobalSearchParams } from 'expo-router'; 9 const params = useGlobalSearchParams();
|
| /expo/packages/expo-router/src/__tests__/ |
| H A D | hooks.test.node.tsx | 6 import { useGlobalSearchParams, useLocalSearchParams, usePathname, useSegments } from '../hooks'; 62 describe(useGlobalSearchParams, () => { 64 const { result } = renderHook(() => useGlobalSearchParams(), ['[fruit]/[shape]/[...veg?]'], { 83 const params = renderHookOnce(() => useGlobalSearchParams()); 88 const params = renderHookOnce(() => useGlobalSearchParams<{ a: string }>()); 101 globalParams: useGlobalSearchParams(), 148 // , any <Screen /> that uses useGlobalSearchParams Should update 160 globalParams: useGlobalSearchParams(), 219 const { result } = renderHook(() => useGlobalSearchParams(), ['[fruit]/[shape]/[...veg?]'], {
|
| H A D | smoke.test.tsx | 3 import { Slot, router, useGlobalSearchParams } from '../exports'; 37 const { slug } = useGlobalSearchParams();
|
| H A D | navigation.test.tsx | 6 useGlobalSearchParams, 30 const { name } = useGlobalSearchParams(); 54 const { name } = useGlobalSearchParams(); 78 const { name } = useGlobalSearchParams(); 97 const { name } = useGlobalSearchParams(); 125 const { name } = useGlobalSearchParams();
|
| /expo/packages/expo-router/src/ |
| H A D | exports.ts | 8 useGlobalSearchParams,
|
| H A D | hooks.ts | 80 export function useGlobalSearchParams< function
|
| /expo/docs/pages/router/reference/ |
| H A D | screen-tracking.mdx | 17 import { usePathname, useGlobalSearchParams, Slot } from 'expo-router'; 21 const params = useGlobalSearchParams();
|
| H A D | search-parameters.mdx | 16 - **useGlobalSearchParams**: Returns the global URL regardless of the component. It updates on ever… 22 …w demonstrates the difference between `useLocalSearchParams` and `useGlobalSearchParams`. It uses … 60 import { useLocalSearchParams, useGlobalSearchParams, Link } from 'expo-router'; 65 const glob = useGlobalSearchParams(); 117 …- `useGlobalSearchParams` made the background screens re-render when the search params changed. It… 125 Both the `useLocalSearchParams` and `useGlobalSearchParams` can be statically typed using a generic:
|
| H A D | hooks.mdx | 38 <APIBox header="useGlobalSearchParams"> 49 import { useGlobalSearchParams } from 'expo-router'; 54 const { user, extra } = useGlobalSearchParams(); 68 When `/abc/home` pushes `/123/shop`, `useGlobalSearchParams` returns `{ first: undefined, second: '…
|
| H A D | testing.mdx | 115 <APIBox header="useGlobalSearchParams"> 117 …en's pathname that matches a value. Compares using the value of [`useGlobalSearchParams`](/router/… 119 …parameters against an object. The matcher uses the value of the [`useGlobalSearchParams`](/router/… 122 expect(screen).useGlobalSearchParams({ first: 'abc' });
|
| H A D | typed-routes.mdx | 130 … manually by passing a generic to the `useLocalSearchParams` and `useGlobalSearchParams` hooks. Fo…
|
| /expo/packages/@expo/cli/src/start/server/type-generation/__typetests__/fixtures/ |
| H A D | basic.ts | 233 export declare function useGlobalSearchParams<
|
| /expo/docs/pages/router/migrate/ |
| H A D | from-react-navigation.mdx | 313 …), [`useSegments()`](/router/reference/hooks/#usesegments), and [`useGlobalSearchParams()`](/route… 445 …irectly, consider migrating to the `usePathname`, `useSegments`, and `useGlobalSearchParams` hooks.
|