flummox
soon although it should be way simpler than marty
.
hey guys.
I have a problem with server-side rendering app with flummox.
this is the code - https://github.com/tadjik1/soundcloud-player
and this is the problem: acdlite/flummox#186
maybe someone met it?
componentWillMount()
method to load this initial data: the action gets dispatched with the payload but the state of the Store doesn't get updated. This makes me wonder if this is the right approach, and if not, would someone recommend an alternative? TIA
In that implementation marty keeps track of every remotely
fetched property of a store separately within the store, so, say your store holds a GitHub user with all its repos, you get the user and its list of repos separately with two separate fetches.
If you were to do it yourself (probably a cleaner approach) you could have two stores, one for the user and one for the repos and hold an internal state for it that tells whether it has data or it's fetching it from a remote source. Your app would then be aware of that fact and you would get a "status" property in your store's state that you can now leverage within your views.