I'm using Flutter hooks to fetch data by combining useMemorized and useFuture like this:
final _latestDocsFuture =
useMemoized(() => getLatestDocs());
final _latesetDocsSnapshot = useFuture(_latestDocsFuture);
The problem with this hook is I can't re-trigger the useFuture to re-fetch the data in case of an error (allowing the user to tap on a button to try and fetch the data again). Is there any method that can let me re-trigger the useFuture hook?