Skip to content

V7 - Typing around subscribing to Router Events #12866

Closed Answered by Ecksters
Ecksters asked this question in Q&A
Discussion options

You must be logged in to vote

Nevermind, looks like I needed to restart my TypeScript server so it'd stop complaining about the imports after I updated my dependencies.

With v7 I was able to remove the @remix-run/router dependency from my project, as all the types I was using are now exported from the react-router import:
https://github.com/remix-run/react-router/blob/main/packages/react-router/index.ts#L18

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Ecksters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant