DEV Community

Discussion on: Status instead of isLoading boolean?

Collapse
 
macsikora profile image
Pragmatic Maciej

Everything is a state machine, even isLoading state with setState represents such with two possible states. The problem starts when the model needs more than two states, then bool starts to be a problem. I have few articles about this subject, take this - dev.to/macsikora/boolean-the-good-.... πŸ˜‰

Thread Thread
 
joannaotmianowska profile image
Joanna Otmianowska

thanks! I will check out your articles