I used this method in my app how to migrate without it
1 Like
If you look at the release notes Framework7 Release Notes it says that:
-
core: remove Request module in favor of native
fetch
(0a9f0a7)
So you have to use fetch: Fetch API - Web APIs | MDN
2 Likes
But how do we use fetch in the same sense that we used the request in v7?
especially the Request.Setup function? it was great for so many scenarios and using fetch over request feels like a downgrade for framework7 honestly
I usually write a simple wrapper function for the old request or new fetch method, which in turn can add login token etc on each request. This function for example also handles expired tokens or offline status as well to redirect to login screen or present offline notification.