keyUpdateAutorun method
void
keyUpdateAutorun()
Implementation
void keyUpdateAutorun() {
try {
final key = computedKey.value;
final currentState = super.state;
if (!currentState.isLoading && currentState.key == key) {
if (_shouldReload) {
add(Reload());
}
} else if (key != super.state.key) {
add(KeyUpdate(key));
}
} on MobXCaughtException catch (error) {
add(KeyError(error.exception));
} catch (error) {
add(KeyError(error));
}
}