Netanel Basal
Aug 6, 2021

--

Yes, it could work. I'm not a big fan of booleans. Booleans don't scale very well in general. I prefer to use a "state" instead.

Moreover, when you look at boolean, it's harder to say in which environment this property is true/false. You'll need to go over each one of the configs.

--

--

Netanel Basal
Netanel Basal

Written by Netanel Basal

A FrontEnd Tech Lead, blogger, and open source maintainer. The founder of ngneat, husband and father.

Responses (1)