Get loader function context type for a route?
Is there a way to get the loader context type for a specific route for code split loaders?
e.g.
export const loader = (ctx: <context type for "/foo">) => ...2 Replies
relaxed-coral•2y ago
Yes, you can use the the FileRouteLoader api
xenial-blackOP•2y ago
Perfect, thanks.