<@U78L28DMX> JsonModel and ItemViewModel differ in...
# tornadofx
c
@amanda.hinchman-dominguez JsonModel and ItemViewModel differ in that JsonModel represents Record State (what's saved somewhere) and ItemViewModel represents Screen State (what you see on the screen). These could be made one-in-the-same in that an update to a TextField could automatically update a database. However, it's more practical to make commit points where saving is coordinated. This way, you can address performance concerns (RESTful calls for each key press would make the system unusable) and can prevent works-in-progress from being written out (ex, save "Ca" instead of "Carl").
👍 1