Skip to content

Instantly share code, notes, and snippets.

@wcandillon
Last active April 2, 2017 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wcandillon/3668c544e8697193cfa43b33bb806d60 to your computer and use it in GitHub Desktop.
Save wcandillon/3668c544e8697193cfa43b33bb806d60 to your computer and use it in GitHub Desktop.
import {User} from "./Model";
type Snapshot = firebase.database.DataSnapshot;
export default class UserStore {
constructor() {
FirebaseProvider.get().currentUserDBRef.on("value", (snapshot: Snapshot) => {
this.user = snapshot.val() as User;
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment