Closed ifokeev closed 8 years ago
Nice!
Op di 23 aug. 2016 om 20:05 schreef 1 notifications@github.com:
I developed a real-world tiny app that demonstrates use of React with Mobx and Mobx-store: https://github.com/ifokeev/support-service
It has a single store, prefetch and server-side rendering. I think it may be useful for beginners. If you have the same view, please, add it to your readme. It's non-commerce project, of course, but might be used as real-world example or lightweight support-service.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AriaFallah/mobx-store/issues/44, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvGhILEv02w3pPhbXOrSk5nKcHPKTr7ks5qizZzgaJpZM4JrN4R .
Do you have it running somewhere? or some screenshots in the Readme? that would be valuable :)
Op di 23 aug. 2016 om 20:09 schreef Michel Weststrate <mweststrate@gmail.com
:
Nice!
Op di 23 aug. 2016 om 20:05 schreef 1 notifications@github.com:
I developed a real-world tiny app that demonstrates use of React with Mobx and Mobx-store: https://github.com/ifokeev/support-service
It has a single store, prefetch and server-side rendering. I think it may be useful for beginners. If you have the same view, please, add it to your readme. It's non-commerce project, of course, but might be used as real-world example or lightweight support-service.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AriaFallah/mobx-store/issues/44, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvGhILEv02w3pPhbXOrSk5nKcHPKTr7ks5qizZzgaJpZM4JrN4R .
@mweststrate I will upload it in 1 hour and place link here and to the readme.
@ifokeev
I'm really happy you're using the library. I'll put it in the README if you want for sure, but I also have to be a party pooper even if it's my own library.
You're using only the .get
and .set
methods of the store, which means that you can just replace the line where you use mobx-store
import mobxstore from 'mobx-store'
const store = mobxstore(initialState);
with
import { observable, asMap } from 'mobx'
const store = observable(asMap(initialState));
I've tried a lot to use this library in my own projects, and truly, there's no reason to use it over a regular mobx map, especially if you already know what mobx is and how to use it.
Only in the following cases would you use it over a mobx map:
Your case fits none of these.
Lol, but uh great project. I'll still put it in the README if you want after you read this. I've just come to be a bit disappointed in my own library, and figured you should know you can basically drop the dependency.
@mweststrate http://support-service.vanya.cc/dashboard/ Sorry for the delay lol. Was trying to manage docker. Also uploaded dumb managing scripts, but I have no idea how to manage docker easy and fast: https://github.com/ifokeev/docker-dumb-starter-kit
@AriaFallah Thank you for your response. I've never thought about it. I will refactor scripts based on your recommendations. I started use your library because of undo/redo and maybe I will add this feature later.
Thank you, guys, for your work and fast responses :)
I developed a real-world tiny app that demonstrates use of
React
withMobx
andMobx-store
: https://github.com/ifokeev/support-serviceIt has a single store, prefetch and server-side rendering. I tried to make it clean and correct. I think it may be useful for beginners. If you have the same view, please, add it to your readme. It's non-commerce project, of course, but it may be used as real-world example or lightweight support-service.
Thank you in advance.