Skip to content

纯前端项目改造ssr,遇到combineReducers的问题 #43

@salody

Description

@salody

在创建store的过程中,传入的reducers做了改造。使用combineReducers来生成rootReducers。项目会警告:

Unexpected keys "ctx", "request", "helper", "gettext", "__", "csrf", "url" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "userInfo", "loading", "exam", "list", "landingInfo". Unexpected keys will be ignored.

打包后,npm start访问,会报500错误。

请问这个问题应该怎么解决呢?或者reducer应该怎么组织呢

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions