copper-leaf / ballast

Opinionated Application State Management framework for Kotlin Multiplatform
https://copper-leaf.github.io/ballast/
BSD 3-Clause "New" or "Revised" License
144 stars 11 forks source link

[Intellij plugin] Add feature to send/receive app states as JSON #34

Closed cjbrooks12 closed 10 months ago

cjbrooks12 commented 1 year ago

While it is useful to be able to rollback to previous states, it would be really nice to be able to upload JSON to the client application, which can deserialize it and set it as the ViewModel's State. Additionally, it would be nice for clients to be able to send serialized States rather than the .toString() version of State, so that they can be explored in a tree view in the UI.

Ideally, this would be implemented in a way completely agnostic of the client serialization framework. There would just be a callback to (de)serialize States, and the debugger just trusts that the client is configured correctly to accept it.