DEV Community


Discussion on: Status instead of isLoading boolean?

macsikora profile image
Maciej Sikora

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 - 😉

Thread Thread
joannaotmianowska profile image
Joanna Otmianowska Author

thanks! I will check out your articles

Forem Open with the Forem app