可以修复/避免以下警告吗?
store.js:607 The feature name "siteContext" does not exist in the state,
therefore createFeatureSelector cannot access it. Be sure it is
imported in a loaded module using StoreModule.forRoot('siteContext',
...) or StoreModule.forFeature('siteContext', ...). If the default
state is intended to be undefined, as is the case with router state,
this development-only warning message can be ignored.
我看到createFeatureSelector(featureName)存储函数被多次调用。第一次调用“siteContext”作为 featureName 时,状态不会被初始化,因此警告消息会显示到控制台(仅在开发模式下)。
我正在使用spartacus/core和spartacus/storefront的 1.2.1 版