-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MobX roadmap (> 2.3) #323
Comments
Proposal for standardized (de)serialization: Feel free to shoot at it! (Probably it is easier to start with the examples at the bottom) https://gist.github.com/mweststrate/4c9a8e0411ae547fdfe1bc3633dc599e Might become a stand alone package, not really mobx related so far |
I tend to agree with @pkieltyka about being careful not to bloat the library with features. The great thing about mobx now is the very short learning curve. It has few concepts that are easy to grasp. Once a lot of concepts are added to mobx, it becomes more difficult to learn. I would suggest trying to keep a minimal API in mobx core, and let libraries provide more features on top of it. |
I would like to suggest that we remove features from the library and keep it small, currently there are few concepts I have to learn to use it - optimally there would be even fewer:
I'd like to see the library smaller and see how things like |
For the second bullet: See pull request #65 , build (First one is WIP as well) |
|
@mweststrate awesome, I was waiting this to land and works perfectly - such a great addition to separating stores for better testing |
+1 for (de)serialization 👍 |
Closing this issue as it tends to become a double administration |
Apologies for necroing an issue, but I couldn't find any other information after searching. The first item here "provide standardized (de)serialization mechanism" is checked. Does that mean something for that feature has been implemented somewhere? |
yes, see serializr package (or mobx-state-tree, but that is WIP) Op do 17 nov. 2016 07:17 schreef James Brantly notifications@github.com:
|
Do we have any samples regarding onBecome(Un)Observed ? |
I'd just like to point out here for anyone that happens to read this issue that so far serializr has been working great for us. Started our serialization stuff with cerialize (https://github.com/weichx/cerialize) but ended up switching to serializr for the nicer api, better compatibility with MobX and support for references and lookups. Cerialize does provide a nice utility for automatically converting keys to/from e.g. snake_case and camelCase, but that's nothing that can't easily be done in serializr with some custom serialization functions. Also, computeds and createTransformer can then be used to create a state tree kinda like mobx-state-tree. |
For the previous one see #219 :)
fromJS
api (opposite of toJS)? #297mobx-react
, see Importing store directly or pass as props? #300 , Built in support for connecting stores to components mobx-react#53The text was updated successfully, but these errors were encountered: