Created
March 16, 2023 17:27
-
-
Save shershen08/90e1a8c70a9944bc783c348f538172e8 to your computer and use it in GitHub Desktop.
Vuex и стейт менеджеры
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vuex (~Redux), 2017 | |
----- | |
- общее дерево стейта | |
Actions | |
Mutations | |
Actions -> Mutations | |
Component -> Mutations | |
Component -> Actions -> Mutations | |
Pinia (~mobx), 2021 | |
----- | |
- отдельные стейты под разные данные - S1, S2, ... | |
Actions | |
Component -> Actions | |
Actions.S1 -> S2 | |
S2 -> Actions.S1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment