react-native-network-logger
react-native-network-logger copied to clipboard
'Resume' needs to apply missed logs
needs : MR #88
using pause/resume, if we resume, all missed logs are ignored. we changed that so if we resume, the logger will get updated with all missed logs.
maybe it will be better to have:
- watch/unwatch (record/stop) (e.g.: record in browser network tab)
- freeze/unfreeze (pause/resume)
changes:
- changed the example to send random requests (easier to see which ones were part of pausedRequests)
- keep an array of requests while the logger is paused and apply all missed logs to the queue when resumed