dont preserve initial state in memo future
This commit is contained in:
parent
cb2cc99546
commit
0009082a40
|
@ -3,4 +3,4 @@ import 'package:flutter_hooks/flutter_hooks.dart';
|
|||
|
||||
AsyncSnapshot<T> useMemoFuture<T>(Future<T> Function() valueBuilder,
|
||||
[List<Object> keys = const <dynamic>[]]) =>
|
||||
useFuture(useMemoized<Future<T>>(valueBuilder, keys));
|
||||
useFuture(useMemoized<Future<T>>(valueBuilder, keys), preserveState: false);
|
||||
|
|
Loading…
Reference in New Issue