Closed carlitux closed 8 years ago
This is only happening when using immutable on stores... If I remove decorator, all works as expected.
The immutable decorator uses immutable.js
to make your store use immutable data structures. These immutable data structures are passed back to the view, so what you are seeing is correct.
There are a couple of things you can do. You can call .toJS()
on the immutable structure you are getting back in your component to convert it to a POJO, if you find that easier to work with. You can also use the getters that the immutable.js
library provides to read data from the immutable object. Lastly, you can remove the decorator entirely as you already noted.
Hi I have code on server side sending this string to alt.bootstrap:
but when printing the state in component I am getting:
I am using same string on browser to bootstrap and it is rendered as I need, but server is not rendering the same.
Any idea why on server bootstrap is not filling the Stores?