1.React Router 6.4 随着React Router 6.4 正式发布,React Router 也加入到了远程状态管理的阵营,开发团队将 Remix 中的功能带入到 React Router 中。 特性总览可以移步What's New in 6.4?。 2.VS Code August 2022 VS Code 近期发布 2022 年 8 月的版本,下面摘出来一些特性: 合并编辑器优化(改为手动打开...
I'm sorry, I would have just gotten to these but I've been really slammed. This is just a list of what I'd like to resolve before cutting 3.0.0-pre.0. Put routes on context.router (and inject in withRouter) Move out ContextUtils into a s...
import { RouteWithHandle } from 'react-router-dom'; // A generic helper to declare route objects with a custom handle type. type FooRoute = RouteWithHandle<{ foo?: string; }>; // MyRoutes is equivalent to interface FooRoute extends Omit<RouteObject, 'children'> { handle?: { foo?:...
28 changes: 14 additions & 14 deletions 28 packages/react-router/lib/dom/ssr/routeModules.ts Original file line numberDiff line numberDiff line change @@ -96,11 +96,11 @@ export interface LinksFunction { export interface MetaMatch< RouteId extends string = string, Loader extends LoaderFunct...