Closed kuhnroyal closed 6 months ago
I'm glad you like the new features!
Please upgrade to version 22.4.5.
From StoreProvider
, VmFactory
and ReduxAction
you should now have direct access to:
state
dispatch
dispatchSync
dispatchAndWait
waitCondition
waitAllActions
isWaiting
isFailed
exceptionFor
clearExceptionFor
Now StoreProvider.state
has a notify
parameter for you to get the state without rebuilding (and so do isWaiting
, isFailed
, exceptionFor
and clearExceptionFor
).
You can get the store with StoreProvider.backdoorInheritedWidget
but that's only for advanced use cases, like yours. The reason it's not exposed simply as store
is because people could use it to get the state
, and it wouldn't rebuild when the state changes. That's almost always the wrong way to get the state.
Thanks I checked and seem to be able to adjust everything now!
There are some awesome changes in the latest version(s), really like that!
I have built a wrapper around
StoreConnector
that waits until awaitCondition
is met before doing its magic.I am now missing a way to access
store.waitCondition
. My wrapper also manually calls theOnInitCallback
which requires thestore
as parameter and I also have no more access to this.context.getState(listen: false)
?waitCondition
function without having a store?Thanks!