Closed KrisLeeCoder closed 7 years ago
Seems like you're describing mapStoreToState
literally to a tee.
It's completely up to the coder what gets passed to the component, how it's filtered, formatted, whether you call other stuff, etc. And if you just map an empty object or null then no setState
is called at all.
I've read all the docs. It seems that the doc intend to make me combine Stores and Components with STATE. But I don't think it's flexible. In v2.x, I can use a receiver in React Components, and send data in Stores with method "trigger". In this way, I can deal with the data in the receiver, like formatting or filtering it, or trigger another action. the code may like this:
So confused, why not put this style in the doc and make it more flexible to use?