status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
265 stars 76 forks source link

Wallet's RootStore: make all properties read-only #14802

Open micieslak opened 2 weeks ago

micieslak commented 2 weeks ago

Description

All store's properties should be read-only. Altering backend's state should be done by "actions" which are exposed from a store as methods. In particular, stores should not be a place to hold UI state.

Screenshot from 2024-05-15 23-49-44

Maintaining that state is not responsibility of store and should be externalized.