Skip to content

Instantly share code, notes, and snippets.

@shershen08
Created March 16, 2023 17:27
Show Gist options
  • Save shershen08/90e1a8c70a9944bc783c348f538172e8 to your computer and use it in GitHub Desktop.
Save shershen08/90e1a8c70a9944bc783c348f538172e8 to your computer and use it in GitHub Desktop.
Vuex и стейт менеджеры
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