eventSink and different states #1101
Unanswered
chriswiesner
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Any reason you can't just extract your event sink to a variable separately then? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a scaffold with a top-bar that as a back/up navigation icon.
the screen has a loading and a success state.
i want to be able to navigate back also when the screen is loading - with this both states need to have an eventSink and to avoid type-checks i need to declare it in the parent an override it :/
also the Presenter needs to define the eventSink for both states which is a bit convoluted
is there a cleaner approach apart from only having one state class that has a
isLoading
flag?(ofc eventSink for both cases can be defined as property in the Presenter - but it still feels a bit redundant)
Beta Was this translation helpful? Give feedback.
All reactions