Skip to content

Commit

Permalink
Export correct Remix useMatches wrapper (#7551)
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 authored Sep 27, 2023
1 parent 250384b commit 36664bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/use-matches-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/react": patch
---

Export the proper Remix `useMatches` wrapper to fix `UIMatch` typings
2 changes: 1 addition & 1 deletion packages/remix-react/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export {
useHref,
useLocation,
useMatch,
useMatches,
useNavigate,
useNavigation,
useNavigationType,
Expand Down Expand Up @@ -72,6 +71,7 @@ export {
useLoaderData,
useRouteLoaderData,
useActionData,
useMatches,
RemixContext as UNSAFE_RemixContext,
} from "./components";

Expand Down

0 comments on commit 36664bf

Please sign in to comment.