From 410e669dec22ba259e3ff416a42b6bec72cb9765 Mon Sep 17 00:00:00 2001 From: Nick Randall Date: Tue, 2 May 2023 07:20:21 -0600 Subject: [PATCH] feat(remix-react): export `react-router-dom`'s `useMatch` hook (#5257) Co-authored-by: Matt Brophy --- .changeset/export-use-match.md | 5 +++++ contributors.yml | 1 + packages/remix-react/index.tsx | 1 + 3 files changed, 7 insertions(+) create mode 100644 .changeset/export-use-match.md diff --git a/.changeset/export-use-match.md b/.changeset/export-use-match.md new file mode 100644 index 00000000000..8a9f530dd66 --- /dev/null +++ b/.changeset/export-use-match.md @@ -0,0 +1,5 @@ +--- +"@remix-run/react": patch +--- + +Add `useMatch` re-export from `react-router-dom` diff --git a/contributors.yml b/contributors.yml index 2a2f5080401..cb85bc1f4b2 100644 --- a/contributors.yml +++ b/contributors.yml @@ -380,6 +380,7 @@ - nicksrandall - nickytonline - niconiahi +- nicksrandall - nielsdb97 - NikkiDelRosso - ninjaPixel diff --git a/packages/remix-react/index.tsx b/packages/remix-react/index.tsx index 930abb91337..54b17227d33 100644 --- a/packages/remix-react/index.tsx +++ b/packages/remix-react/index.tsx @@ -24,6 +24,7 @@ export { useFormAction, useHref, useLocation, + useMatch, useNavigate, useNavigation, useNavigationType,