Skip to content

Commit 5b179ee

Browse files
authored
Merge pull request #2999 from tanem/housekeeping
Tidy comments
2 parents a95c43a + ac630e3 commit 5b179ee

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

examples/next-app-router/components/NavigationProgress.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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.
3636
function 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().
5655
export default function NavigationProgress({
5756
children,
5857
}: {

0 commit comments

Comments
 (0)