Closed ronnieeeeee closed 2 years ago
Merging #308 (911aff4) into master (8c68676) will increase coverage by
0.07%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #308 +/- ##
==========================================
+ Coverage 98.17% 98.25% +0.07%
==========================================
Files 13 14 +1
Lines 659 689 +30
==========================================
+ Hits 647 677 +30
Misses 12 12
Impacted Files | Coverage Δ | |
---|---|---|
...ges/flutter_hooks/lib/src/listenable_selector.dart | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 8c68676...911aff4. Read the comment docs.
Thanks!
Hi, Remi!
useListenable is easy to use, but I think it tends to cause unnecessary rebuilds In such a case, I think the useListenableSelector added this time is convenient.
This is an example where the button is disabled when nothing is entered in TextField.
Example using useListenable.
Example using useListenableSelector. This is the better performance.