Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
slow_donkey
· 8y ago · 0 comments
Have you looked into using a fetch event hook? The first thing I thought of was an Axios interceptor if you're using Axios or other http lib.
That should allow you to sum up download sizes.
Comments
[–]
wbercx
8y ago
Thanks for this! I've recently been asked how much data our React Native app uses. I totally hadn't thought of using Axios' interceptors to track this. So obvious!