Giter VIP home page Giter VIP logo

mobx-firebase-store's People

Contributors

frederickfogerty avatar nyura123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mobx-firebase-store's Issues

An example involving writes

README.md says:

//Update firebase data using raw Firebase API

Is there an example somewhere that does this, combined with mobx-firebase-store?

How to write/push to Firebase?

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.

Complete example of mobx-firebase-store with React component

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.

optimistic updates

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

Handle Firebase 3.x Auth?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.