-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase.database().ref().once() fires first time and after app refresh it doesn't fire #1601
Comments
Same here.
It only happens after reloading or with the Debug JS Remotely mode. Restart the app is enough to make it work again but as soon as you reload it does not work anymore. |
Same for me. When a component unmounts and remounts again, and even when the app is closed and removed from the background and opened again, it does not get the new data added to the database |
Hey @afrakhan123 @gvetsa @guidotajan, I started looking at this in #1535 but got pulled away fixing more pressing issues sorry 🙈 @guidotajan thanks for the stack trace, that's actually very helpful and gives me something else I can check. I'll take another crack at this tonight/tomorrow and report back over at #1498 - let's continue the discussion over there so as not to duplicate. |
Issue
I am using ref.once() method and it fires properly the first time but after app refresh it doesn't throw exception or returns data the app just got stuck over there.
I have to redeploy the jar on the android simulator to make it work again and then it stops working again after refresh.
Environment
Android simulator
Windows 10
Build Tools:
React Native
version:"react-native": "0.57.0",
React Native Firebase
Version:"react-native-firebase": "^4.3.8",
Firebase
Module:database
typescript
?No
Loving
react-native-firebase
? Please consider supporting them with any of the below:React Native Firebase
andInvertase
on TwitterThe text was updated successfully, but these errors were encountered: