Amy Blankenship
Apr 24, 2022

The problem with Singleton is not that there's only one, but that as it's typically used it violates Liskov substitution principle and also everyone can get hold of it. http://misko.hevery.com/code-reviewers-guide/flaw-brittle-global-state-singletons/

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

No responses yet