state property
The current state.
Implementation
@override
ResourceState<K, V> get state {
final currentState = _state.value;
if (!mainContext.isComputingDerivation() && _shouldFallbackLoad) {
// Only show fallback loading if inside MobX derivation
// Ordinary calls to state should show the original state
return currentState.copyWith(isLoading: false);
} else {
return currentState;
}
}