flutterdata / flutter_data

Seamlessly manage persistent data in your Flutter apps
MIT License
410 stars 31 forks source link

How to disable OfflineRetry? #275

Closed yadferhad closed 1 month ago

yadferhad commented 4 months ago

As stated in the title, how do we disable the offline retry feature? I have my own mechanism in place for offline retries and I want to disable the library's one. How do we just return an error in case the request was not successful, so that the error can be intercepted?

frank06 commented 3 months ago

It's been removed in master but not in 1.6.0. For now you can override isOfflineError and return false!