DEV Community

Abdullah Munshi
Abdullah Munshi

Posted on

Confusion about loading state variable

I am a growing full-stack developer. on a project I am a bit confuse of using loading state variable. should I use separate loading state variable for each type of crud action? for example in redux cart slice we should add separate loading variable for addtocart, deletefromcart, updatingcart methods? what's professionals do?

Top comments (0)