-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ViewState instead of ConfigurationVO
Now that the view layer has no implicit state, need to explicitly retain the state somewhere. Where we could previously use a slightly more detail-agnostic ViewState and keep rendering detail in the view layer, doing so now would require re-introducing local state in the Composables and comparing input to it, knowing which to keep. Yuk. So instead the ViewState has to become very tightly bound to the UI impl. details, to actually keep their state, such as text entry for a decimal number. That kinda sucks. I'm probably just looking at it wrong, fighting it and doing it the wrong way, based on previous experience. I'm sure different seams exist here instead like with React. Maybe should emit the Compose UI straight out of the VM or something. Don't know yet.
- Loading branch information
Showing
3 changed files
with
133 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters