Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jonatas
2021-02-22 14:19:30 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f7c769b5ef879eff26274c9d65831aa3db21a3a1
f7c769b5
1 parent
bfc1d52f
remove microtask from group update
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
lib/get_navigation/src/root/parse_route.dart
lib/get_state_manager/src/simple/list_notifier.dart
lib/get_navigation/src/root/parse_route.dart
View file @
f7c769b
import
'
package:get
/get_core/src/get_main.dart'
;
import
'
../../..
/get_core/src/get_main.dart'
;
import
'../../get_navigation.dart'
;
import
'../routes/get_route.dart'
;
...
...
lib/get_state_manager/src/simple/list_notifier.dart
View file @
f7c769b
...
...
@@ -57,16 +57,16 @@ class ListNotifier implements Listenable {
void
refreshGroup
(
Object
id
)
{
assert
(
_debugAssertNotDisposed
());
/// This debounce the call to update.
/// It prevent errors and duplicates builds
if
(
_microtask
==
_version
)
{
_microtask
++;
scheduleMicrotask
(()
{
_version
++;
_microtask
=
_version
;
_notifyIdUpdate
(
id
);
});
}
// /// This debounce the call to update.
// /// It prevent errors and duplicates builds
// if (_microtask == _version) {
// _microtask++;
// scheduleMicrotask(() {
// _version++;
// _microtask = _version;
_notifyIdUpdate
(
id
);
// });
// }
}
bool
_debugAssertNotDisposed
()
{
...
...
Please
register
or
login
to post a comment