-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Remix Router has introduced some breaking changes, apparently, and that breaks this library as well. The RouteHandlers type is no longer exported from @remix-run/fetch-router, referenced here:
router/packages/router/src/router.ts
Line 11 in 24a26cc
| import { AppStorage, type RouteHandlers, type RouteMap } from "@remix-run/fetch-router"; |
This makes router.map() untyped and fails projects with strict type validation.
Suggestions
I generally don't recommend setting latest as the peer dependency version of Remix Router. At least, until RR is pre-1.0.
Regarding the type, RequestHandlers type has become more complex, but the most drop-in replacement is the new Controller type exported from the root of RR.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels