DEV Community

loading...

Discussion on: What’s a concept you understand now, but took you forever to grasp?

Collapse
nyanev profile image
Nikolay Yanev

In which cases do you use singletons? I’m not big fan of them and try to use it as little as possible.

Collapse
lhermann profile image
Lukas Hermann

It's useful to store global state. Similar to Vue's vuex or React's redux.

Thread Thread
nyanev profile image