-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! Sorry for a bit of a late reply (didn't get the email about this). Judging by the screenshot alone, it looks like you are extending an immutable container. You need to expose the immutable container type. Inside your viewModel, try putting explicit type: val store: Store<AuthState, AuthIntent, AuthAction> by store { }. This way, you will have a mutable interface which has the intent() function you want. As for why reduceLambdas doesn't work, it's because your Intent type is likely a class and not a typealias for |
Beta Was this translation helpful? Give feedback.
Hi! Sorry for a bit of a late reply (didn't get the email about this).
Without knowing what exact errors you are seeing, and just by screenshots, it's hard to help you.
Can you please provide code as text with formatting, and tell me what build errors you're facing?
Judging by the screenshot alone, it looks like you are extending an immutable container. You need to expose the immutable container type. Inside your viewModel, try putting explicit type:
val store: Store<AuthState, AuthIntent, AuthAction> by store { }.
This way, you will have a mutable interface which has the intent() function you want. As for why reduceLambdas doesn't work, it's because your Intent type is likely a class and…