nyura123 / mobx-firebase-store Goto Github PK
View Code? Open in Web Editor NEWStore firebase data in mobx maps
Store firebase data in mobx maps
README.md says:
//Update firebase data using raw Firebase API
Is there an example somewhere that does this, combined with mobx-firebase-store?
https://github.com/nyura123/mobx-firebase-store/blob/master/src/index.js#L17
Based on this merge
call, looks like there's no support for a subscription that evaluates to a primitive value.
Hey @nyura123. Thanks for the library, it's clear I'm using it from my two pull requests.
I'm still wrapping my head around various things in the API, but one gaping hole keeps emerging. What's the best way to update data in Firebase with this library, or does this library just not do that at all? Are we expected to use the firebase API directly? I can see it has loading and subscribing to data sorted, but just can't work out the pushing/updating data part yet.
Any plans to support Firebase 3.x?
This is awesome. I was about to have to roll a Firebase+MobX (+React) thing myself; glad you beat me to it because this is definitely better than what I would have come up with!
It seems like to use this with React I just have to use the @autoSubscriber
decorator and then have subscribeSubs
call myMobxFirebaseStore.subscribeSubs
. Is that right?
Would be valuable to see a complete example of mobx-firebase-store with a React component.
After doing "npm install firebase" followed by "npm test" the first thing I ran into is this issue:
There could be more after that.
I am currently unable to install mobx-firebase-store due to this issue.
Reading the Readme :
//do NOT use set() or other mutations on the map -- updates should be written directly to firebase, and will get reflected in the observable map automatically.
Is there a way to have optimistic updates ? Firebase is fast but it's sometime not enough
thanks
Thank you for creating the library is super useful. Has someone used /implemented Firebase 3.x Auth with MobX. The new API provides an observable :
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
// User is signed in.
} else {
// No user is signed in.
}
});
Just wondering if there is an example on how to effectively implement Firebase Auth with MobX and React(if possible).
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.