Provide a base Store #97
Comments
Might be using Backbone.event. Sent from my iPhone
|
I'm happy to share |
Also see McFly On Thursday, November 13, 2014, Reza Akhavan notifications@github.com
|
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed. |
We just released some of the basic Flux infrastructure we use at Facebook, including a base store. |
cool, thanks! 🍺 |
I think it's kind of silly that clients of this module still have to write the same boilerplate for their stores. I think it'd be nice to provide a base for clients.
The simplest way to do this would be to do something like this:
For even better usability, a constructing function could be provided:
Here's an 'example' of how I think it could be done/used: https://github.com/justinwoo/15-puzzle/blob/c600e4d82344b2aa0ccf6c83e06c47a76e2431f7/src/Store.js#L114
Thoughts? Are people's implementations of stores much too different to handle something like this?
The text was updated successfully, but these errors were encountered: