收藏
回答

umi + dva + kbone 运行报错,请问有人成功过吗?

umi3创建的项目,拿其中一个页面来测试,编译后运行报错:

TypeError: Cannot read property 'store' of null

    at Connect(AppGuide)


var store = didStoreComeFromProps ? props.store : contextValue.store;

var contextValue = Object(react["useContext"])(ContextToUse);

var ContextToUse = Object(react["useMemo"])(function () {

        // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.

        // Memoize the check that determines which context instance we should use.

        return propsContext && propsContext.Consumer && Object(react_is["isContextConsumer"])( /*#__PURE__*/react_default.a.createElement(propsContext.Consumer, null)) ? propsContext : Context;

      }, [propsContext, Context]);


connect是dva,主要问题应该还是在dva上,请问这个组合有人有成功过吗?有案例/经验分享吗?网上找不到什么类似的case

回答关注问题邀请回答
收藏
登录 后发表内容
问题标签