-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
This is a...
- 🪲 Bug Report
- 🚀 Feature Request
- 📜 Documentation Request
Which version of Redux Beacon are you using?
- v2.1.0
Which target(s) are you using?
- Google Analytics
- Google Analytics (gtag)
- React Native Google Analytics
- Google Tag Manager
- React Native Google Tag Manager
- Amplitude
- Segment
- React Native Segment
- Other/Third Party: ...(custom Firebase target)
🪲 What are the steps to reproduce your issue?
- Go offline
- Invoke events
🪲 What did you expect to happen?
Events should be persisted in the storage and sending later once connection is established
🪲 What happened instead?
Events are not persisted
Can you help out?
The problem is located here. Potential fix is described below:
else {
- offlineStorage.saveEvents(e);
- ifLoggerLog(e, action, prevState, true, false);
+ if (!isEmptyArray(e)) {
+ offlineStorage.saveEvents(e);
+ ifLoggerLog(e, action, prevState, true, false);
+ }
}
Metadata
Metadata
Assignees
Labels
No labels