You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using redux saga and react native firebase however after pushing an object nothing is returned in v2.2 it would return a result where I could get a query back however it seems its broken in this case unless im doing something wrong?
const result = yield call([dbRef, dbRef.push], () => eventObj);
Environment
Application Target Platform:
Both
Development Operating System:
macos
Build Tools:
xcode
React Native version:
0.49.3
RNFirebase Version:
v3.0.3
Firebase Module:
database
The text was updated successfully, but these errors were encountered:
@MaithaM1 push promise no longer resolves with the reference, you need to change your code to something like the following:
constthenableRef=dbRef.push();// new ref is an instance of DatabaseReference with .then() support, just like the web sdkconsole.log(newRef.key)console.log(newRef.path)// set the value if neededconstpushResult=awaitthenableRef.set({some: 'value'});
Issue
I'm currently using redux saga and react native firebase however after pushing an object nothing is returned in v2.2 it would return a result where I could get a query back however it seems its broken in this case unless im doing something wrong?
const result = yield call([dbRef, dbRef.push], () => eventObj);
Environment
Both
macos
xcode
0.49.3
v3.0.3
database
The text was updated successfully, but these errors were encountered: