Closed kuhnroyal closed 3 years ago
getAndRemoveFirstError
was already there as a getter, so you should have been able to use it already. I'll change that into a function. I don't want to add the store itself because the store state will change, and it's easy to get the wrong one from callbacks.
Could you please test version 6.0.2 ?
You are right I somehow missed that, should work with both versions. Sorry for the noise.
I have an old view model using
getAndRemoveFirstError()
. There is currently no way to access this method when building aVm
instance.I think the store or
getAndRemoveFirstError()
could be added toVmFactory
to solve this.