DEV Community

Discussion on: State Management in Vue 3

Collapse
 
spierala profile image
Florian Spier

What about RxJS based state management like Akita or MiniRx? VueRx seems to be popular, so why not use RxJS state management?

Collapse
 
jsonberry profile image
Jason Awbrey

The biggest reason is that it isnโ€™t necessary.

Where Rx shines in the FE is in Angular, because itโ€™s core, popular libraries, and community all embrace it.

Vueโ€™s reactivity system and the composition API get you propagation of change with requiring Rx.

All that said, I prefer reactive event based approaches to state and application management. I personally mix Rx with the native Vue APIs, but thatโ€™s mostly just so I can use a Subject to broadcast events.