DEV Community

Discussion on: Stop using loading spinners

Collapse
 
nandotherojo profile image
Fernando Rojo

I’ve seen isLoading used a lot. I agree that it’s more descriptive. For some reason I just like shorter words without camel case, but I definitely see the merit to isLoading.

Collapse
 
reikrom profile image
Rei Krom

Prefixing a verb with "is" signals that it's a state/Boolean.
Naming something with just a verb could be confused with a function.

Using shorter words when working on your own is fine, if you're part of a team going against established conventions makes it a pain for everyone else.

Thread Thread
 
nandotherojo profile image
Fernando Rojo

I’m not sure if ‘loading’ would ever be considered a function. You’re free to add ‘is’ there if you want.