React + Redux + Router > 异步服务器端渲染 > 不直接与路由链接的组件不接收静态上下文
React + Redux + Router > Async Serverside Rendering > Components that are not directly linked with route doesn't receive staticContext
我正在尝试使用 React、Redux 和 Router 实现服务器端渲染。
问题是我无法访问未与路由链接的组件中的 staticContext
。
我只需要使用 react-router
和 staticContext
中的 withRouter
以及 match
、 history
和 location
等其他路由参数被传递到容器
我正在尝试使用 React、Redux 和 Router 实现服务器端渲染。
问题是我无法访问未与路由链接的组件中的 staticContext
。
我只需要使用 react-router
和 staticContext
中的 withRouter
以及 match
、 history
和 location
等其他路由参数被传递到容器