react-native-network-logger icon indicating copy to clipboard operation
react-native-network-logger copied to clipboard

'Resume' needs to apply missed logs

Open jwallet opened this issue 2 years ago • 0 comments

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

jwallet avatar Dec 18 '23 21:12 jwallet