未将reactjs中嵌套路由的Api响应设置为redux状态

未将reactjs中嵌套路由的Api响应设置为redux状态,reactjs,redux,react-redux,Reactjs,Redux,React Redux,我正在学习redux和reactjs。但在redux状态下,我被困在SETAPI响应中。我做了如下嵌套路线 import { initApplication } from './actions/LoadInitialParameters'; store.dispatch(initApplication()); render( <Provider store={store}> <ConnectedRouter history={history}> &

我正在学习redux和reactjs。但在redux状态下,我被困在SETAPI响应中。我做了如下嵌套路线

import { initApplication } from './actions/LoadInitialParameters';
store.dispatch(initApplication());
render(
<Provider store={store}>
    <ConnectedRouter history={history}>
        <div>
            <Switch>
                <Route exact path="/" component={App} />
                <Route exact path="/test" component={App}/>
                <Route  path="/register" component={Registration}/>
                <Route  path="/register/pet/more" component={Registration}/>
            </Switch>
        </div>
    </ConnectedRouter>
</Provider>,
document.getElementById('root'))
从“/actions/LoadInitialParameters”导入{initApplication};
dispatch(initApplication());
渲染(
,
document.getElementById('root'))
问题就像我在redux状态下注册路径api响应集,但在redux状态下没有设置/register/pet/more path api响应

针对这个问题给出一些解决方案


谢谢

您如何访问(和写入)redux状态?它对每个人都应该是一样的,并且不依赖于路由。我使用react-redux connect访问redux状态path=“/register”和path=/register/pet/more之间的区别是什么,如果您添加更多关于如何在redux存储中保存状态以及如何在组件中检索状态的信息,那就太好了