File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
examples/next-app-router/components Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ export function useNavigationProgress() {
3030 return context
3131}
3232
33- // Watches pathname/searchParams changes to detect when
34- // navigation has completed. Wrapped in Suspense because
35- // useSearchParams() requires a Suspense boundary.
33+ // Watches pathname/searchParams changes to detect when navigation has
34+ // completed. Wrapped in Suspense because useSearchParams() requires a Suspense
35+ // boundary.
3636function NavigationComplete ( { onComplete } : { onComplete : ( ) => void } ) {
3737 const pathname = usePathname ( )
3838 const searchParams = useSearchParams ( )
@@ -49,10 +49,9 @@ function NavigationComplete({ onComplete }: { onComplete: () => void }) {
4949 return null
5050}
5151
52- // Provides navigation progress state to the component
53- // tree. Navigation start is signalled via the onNavigate
54- // prop on a <ProgressLink>, and completion is detected by
55- // watching usePathname()/useSearchParams().
52+ // Provides navigation progress state to the component tree. Navigation start is
53+ // signalled via the onNavigate prop on a <ProgressLink>, and completion is
54+ // detected by watching usePathname()/useSearchParams().
5655export default function NavigationProgress ( {
5756 children,
5857} : {
You can’t perform that action at this time.
0 commit comments