mobxjs / mobx-state-tree

Full-featured reactive state management without the boilerplate
https://mobx-state-tree.js.org/
MIT License
6.94k stars 640 forks source link

distinguish actions from state in a model #1963

Closed brucexiejunling closed 1 year ago

brucexiejunling commented 2 years ago

Feature request as far as i know, MST define actions and state(computed also) into a model object. as a domain model, i think, it's better to divide them apart, since we declare them in different way, but we visit it the same way.

antondomratchev commented 1 year ago

Take a look at the philosophy behind MST design pattern. https://mobx-state-tree.js.org/intro/philosophy

coolsoftwaretyler commented 1 year ago

Since this would be a somewhat fundamental change to MST, and there hasn't been a ton of discussion here, I'm going to close out the issue for now.

@brucexiejunling - I know it's been a long time since anyone responded to this. I'm sorry about the delay. If you feel strongly about it, would you consider opening up a discussion instead? We can talk about it over there if you'd like!