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
{{ message }}
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.
But instead, an error is throw that might look like this:
PageInteractor.fillEmail is not a function
This is because when an interactor is nested, it's methods return new instances of the parent interactor. So fillName() in SignInInteractor will return a new PageInteractor.
We should have a way to break out of this nested structure for complex methods such as this. Something like this.pure(), this.scoped(), or something akin to return an un-nested interactor.
The text was updated successfully, but these errors were encountered:
Given these interactors:
I would expect this to work:
But instead, an error is throw that might look like this:
This is because when an interactor is nested, it's methods return new instances of the parent interactor. So
fillName()
inSignInInteractor
will return a newPageInteractor
.We should have a way to break out of this nested structure for complex methods such as this. Something like
this.pure()
,this.scoped()
, or something akin to return an un-nested interactor.The text was updated successfully, but these errors were encountered: