Skip to content

Commit

Permalink
Merge pull request #38 from TerrniT/patch-3
Browse files Browse the repository at this point in the history
Changed to the correct locale-aware link (en)
  • Loading branch information
altrusl authored Sep 16, 2024
2 parents 03a80d5 + aa82e4a commit 2579e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/development/stores.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Also here is a lifehack for Devtools from user **@coolcosmos**: *I just use refs

::: details How to split logic between component and composable functions?

It is convenient to think of it as [MVC pattern](https://ru.wikipedia.org/wiki/Model-View-Controller), where the role of `View` (and partially `Controller`) is played by components, which are mainly responsible for visualization, and the logic and model (`Model` and partially `Controller`) fall on composable functions and their reactive state.
It is convenient to think of it as [MVC pattern](https://en.wikipedia.org/wiki/Model-view-controller), where the role of `View` (and partially `Controller`) is played by components, which are mainly responsible for visualization, and the logic and model (`Model` and partially `Controller`) fall on composable functions and their reactive state.

To understand what to put in a composable and what to put in a component (which may consist of several components), imagine that you change the component to another one - displaying your data in some other way. Ideally, the model (composite) should remain the same, you are only rewriting the component that has logic responsible for displaying it.

Expand Down

0 comments on commit 2579e08

Please sign in to comment.