Closed mantoni closed 8 years ago
Oh, I found it myself. Will send a PR.
To clarify: It turns out adding the ns
property in the code above works around the issue just because there is a property on the state object. It doesn't need to be named ns
. Any property would do, as long as the initial state object is not empty.
Ack
The following code throws:
I get
When I don't use a namespace, this does not happen.
Apparently, namespaced modules are not initiallized by barracks. I can work around it like this:
This makes sense when looking at the implementation, however it's not very intuitive.