I am a newbie and hacking around with ngxs.
On the docs There are caveats to Sub States.
I believe I understand the first point to a small degree but I don't fully grasp what the second point means.
Would someone be able to expand on that?
it means that a single state class can't be a child of multiple parent classes. the workaround would be to create new states by extending. so
@State({
name: 'foo' // you can't have another state with this name
})
class MyState1 {}
// so if you want to reuse the listeners and such from 'foo' you have to extend
@State({
name: 'bar'
})
class MyState2 extends MyState1 {}