DEV Community

loading...

Discussion on: Status instead of isLoading boolean?

Collapse
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 - dev.to/macsikora/boolean-the-good-.... 😉

Thread Thread
joannaotmianowska profile image
Joanna Otmianowska Author

thanks! I will check out your articles

Forem Open with the Forem app