Closed luandro closed 8 years ago
Hi @luandro,
Thanks for the feedback. I'm working on couple of helper methods at the moment and I'll have the push
method ready and tested within two days.
cheers, Sean
I'll keep an eye!
Hi @luandro,
I've implemented push
in firebase-saga
version 1.0.17
.
Here is an example usage:
import { push } from 'firebase-saga';
yield call(push, 'posts', () => ({
title: 'Fourth Post',
body: 'This is a the fourth post',
timestamp: +new Date
})
);
You can look at a full working example here: https://github.com/szaranger/firebase-saga/tree/master/examples/blog
Hey @szaranger, thanks!
I implemented it yesterday as well, very similar to what you did. Did you getting error handling to work?
Hey @luandro,
Error handling is something I have in the pipeline.
Thanks for this, a real life saver.
I'd like use Firebases
push
method, I took a look at yourcreate
method but couldn't make much sense on how to use it. Could you give an example?Cheers!