I have a question regarding lazy loading angular feature modules which are also sub states of NGXS state.
For example, I have one parent module and two children modules. I want to lazy load those two children modules. My NGXS store looks like the following:
{
parent: {
children1: {
...
},
children2: {
...
}
}
}
Since my parent module's state has the following code, sub-level feature module lazy loading is not working with the error saying child state not found. I am not importing two children modules for lazy-loading.
@State<ParentModel>({
...
children: [Child1State, Child2State]
})
Does anyone know how to deal with this situation?