Jonatas

remove microtask from group update

1 -import 'package:get/get_core/src/get_main.dart'; 1 +import '../../../get_core/src/get_main.dart';
2 2
3 import '../../get_navigation.dart'; 3 import '../../get_navigation.dart';
4 import '../routes/get_route.dart'; 4 import '../routes/get_route.dart';
@@ -57,16 +57,16 @@ class ListNotifier implements Listenable { @@ -57,16 +57,16 @@ class ListNotifier implements Listenable {
57 void refreshGroup(Object id) { 57 void refreshGroup(Object id) {
58 assert(_debugAssertNotDisposed()); 58 assert(_debugAssertNotDisposed());
59 59
60 - /// This debounce the call to update.  
61 - /// It prevent errors and duplicates builds  
62 - if (_microtask == _version) {  
63 - _microtask++;  
64 - scheduleMicrotask(() {  
65 - _version++;  
66 - _microtask = _version; 60 + // /// This debounce the call to update.
  61 + // /// It prevent errors and duplicates builds
  62 + // if (_microtask == _version) {
  63 + // _microtask++;
  64 + // scheduleMicrotask(() {
  65 + // _version++;
  66 + // _microtask = _version;
67 _notifyIdUpdate(id); 67 _notifyIdUpdate(id);
68 - });  
69 - } 68 + // });
  69 + // }
70 } 70 }
71 71
72 bool _debugAssertNotDisposed() { 72 bool _debugAssertNotDisposed() {