You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem after updating to the newest mobx version.
Take the following example:
class _MyWidgetState = _MyWidgetStateBase with _$_MyWidgetState;
abstract class _MyWidgetStateBase extends State<MyWidget> with Store {
// ...
}
The compiler throws an error:
Superinterfaces don't have a valid override for 'context': State.context (BuildContext Function()), Store.context (ReactiveContext Function()).
Both, flutter's State and mobx's Store have a context method, but with different return types... So I cannot mixin Store into a state.
Is this intentional or unintentional? I guess I'm not supposed to make a State a store, though it worked quite well in the previous version of mobx... Can I work around this anyhow?
The text was updated successfully, but these errors were encountered:
Hi
I have a problem after updating to the newest mobx version.
Take the following example:
The compiler throws an error:
Both, flutter's
State
and mobx'sStore
have a context method, but with different return types... So I cannot mixin Store into a state.Is this intentional or unintentional? I guess I'm not supposed to make a State a store, though it worked quite well in the previous version of mobx... Can I work around this anyhow?
The text was updated successfully, but these errors were encountered: