Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: