Bill Fisher
Bill Fisher
React gzipped is compressed uncompressed ratio uncompressed_name 36347 121391 70.0% react.min.js and flux-chat gzipped is compressed uncompressed ratio uncompressed_name 51823 189793 72.6% bundle.min.js
I think the missing piece here is a WebAPIUtils module. This module has access to all the stores and knows how to construct a query to the Web API. The...
Just following the source... https://github.com/facebook/flux/blob/master/examples/flux-chat/js/utils/ChatWebAPIUtils.js#L29 https://github.com/facebook/flux/blob/master/examples/flux-chat/js/actions/ChatServerActionCreators.js#L20 ...looks like that's needed to initialize the stores with a dispatched action. The server interaction is getting faked with local storage in the chat...
I consider Ruby on Rails to be a fairly canonical MVC implementation. This was certainly the MVC implementation with which I was most familiar when I wrote that documentation. Rails...
The action creators are not controllers. Controllers act _upon_ models. No entity acts upon the stores. Rather, they define how they will respond to actions. It is really not the...
If you need to do a transformation that is generally applicable to your entire application, I would do that in the success callback defined within a WebAPIUtils module. But if...
These are interesting ideas, but I'm wondering how much of a problem the use of strings in the constants or dispatch tokens actually is. In what way does the use...
Better integration with type checking is a pretty compelling argument, but I'm not sure I see the others. I just haven't seen or heard of anyone having an actual problem...
We're still looking into this, and it will probably be a little while before we see how this idea actually pans out in some of our applications. Personally, I would...
Are you suggesting that you would duplicate the logic and the cached value in multiple stores? That sounds like a maintenance nightmare. I vastly prefer a single source of truth....