Skip to content

Commit

Permalink
docs: Update example-app-router-mixed-routing to get rid of depreca…
Browse files Browse the repository at this point in the history
…ted API (#1480)
  • Loading branch information
amannn authored Oct 29, 2024
1 parent 1b6c998 commit ef0d584
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {createSharedPathnamesNavigation} from 'next-intl/navigation';
import {createNavigation} from 'next-intl/navigation';
import {defineRouting} from 'next-intl/routing';
import {defaultLocale, locales} from '../config';

Expand All @@ -8,4 +8,4 @@ export const routing = defineRouting({
});

// Should only be used on public routes in the `[locale]` segment
export const {Link, usePathname} = createSharedPathnamesNavigation(routing);
export const {Link, usePathname} = createNavigation(routing);

0 comments on commit ef0d584

Please sign in to comment.