Keep multiple loading states after calling graphql mutation many times

I’m using react and react apollo in my application and have a question.
I have a page that contains list of users. Every item contains "+" button. When I click on item I want to display spinner until the mutation will finished.

Could you suggest me better solution for keeping loading for each mutation call?
Now I just store it into array, but I think it can be solved better

230 thoughts on “Keep multiple loading states after calling graphql mutation many times”

  1. Howdy, i read your blog from time to time and i own a
    similar one and i was just wondering if you get a lot of spam comments?
    If so how do you prevent it, any plugin or anything you can advise?
    I get so much lately it’s driving me insane so any help is very much appreciated.

    Reply
  2. Greetings from California! I’m bored at work so I decided to
    browse your blog on my iphone during lunch break.

    I really like the information you provide here and can’t wait to take a look when I get home.
    I’m shocked at how quick your blog loaded on my mobile
    .. I’m not even using WIFI, just 3G .. Anyhow, amazing
    blog!

    Reply
  3. It is appropriate time to make a few plans for the longer term
    and it is time to be happy. I have learn this put up and if I may I want to counsel you
    some interesting issues or suggestions. Perhaps you could write subsequent articles relating
    to this article. I wish to read even more things approximately it!

    Reply
  4. I have been browsing online more than 2 hours today, yet I never found
    any interesting article like yours. It’s pretty worth
    enough for me. In my view, if all webmasters and
    bloggers made good content as you did, the net will be much more useful than ever before.

    Reply
  5. Pingback: viagra price
  6. Hello, i read your blog occasionally and i own a similar one and i was just
    curious if you get a lot of spam feedback? If so how do you protect against it, any plugin or anything you can recommend?

    I get so much lately it’s driving me crazy so any assistance is very much appreciated.

    Reply
  7. I think that a foreclosure can have a important effect on the client’s life. Home foreclosures can have a 8 to decade negative affect on a client’s credit report. A borrower who may have applied for a mortgage or just about any loans for instance, knows that a worse credit rating is definitely, the more tough it is to acquire a decent mortgage. In addition, it may affect any borrower’s capacity to find a reasonable place to lease or rent, if that turns into the alternative real estate solution. Interesting blog post.

    Reply
  8. I have been surfing on-line greater than three hours lately, but I by no means
    discovered any attention-grabbing article like yours.
    It’s pretty price sufficient for me. In my opinion, if all website owners and bloggers made just right content
    as you did, the web will likely be much more helpful than ever before.

    Reply
  9. I will right away grasp your rss as I can not to find your
    e-mail subscription link or e-newsletter service. Do you’ve any?

    Kindly allow me recognize so that I could subscribe. Thanks.

    Reply
  10. It’s appropriate time to make some plans for the longer term and
    it is time to be happy. I’ve read this publish and if I could I
    want to recommend you some attention-grabbing things or suggestions.
    Perhaps you could write next articles regarding this article.
    I desire to learn even more things approximately it!

    Reply
  11. I truly love your blog.. Pleasant colors & theme. Did you develop this amazing site yourself?

    Please reply back as I’m attempting to create my own personal website and would love to know where you got this from or just what
    the theme is named. Cheers!

    Reply
  12. Hello just wanted to give you a quick heads up.

    The words in your article seem to be running off the screen in Internet
    explorer. I’m not sure if this is a formatting issue or something to
    do with web browser compatibility but I thought I’d post to let you
    know. The design look great though! Hope you get the problem resolved soon.
    Many thanks

    Reply
  13. Greetings from Los angeles! I’m bored to death at
    work so I decided to check out your site on my iphone
    during lunch break. I love the info you provide here and
    can’t wait to take a look when I get home. I’m amazed at
    how fast your blog loaded on my phone ..
    I’m not even using WIFI, just 3G .. Anyways, excellent site!

    Reply
  14. What i don’t understood is in truth how you’re not actually much more well-favored than you might be now. You’re so intelligent. You know thus significantly relating to this matter, made me in my opinion consider it from so many numerous angles. Its like women and men are not involved unless it’s something to do with Lady gaga! Your own stuffs outstanding. All the time take care of it up!

    Reply
  15. It is perfect time to make some plans for
    the future and it’s time to be happy. I’ve read this post and if
    I could I want to suggest you few interesting things or tips.

    Maybe you could write next articles referring to this article.
    I desire to read even more things about it!

    Reply
  16. Hello! I know this is kinda off topic however , I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a
    blog post or vice-versa? My website addresses a lot of the same subjects as yours and I feel we could greatly benefit
    from each other. If you might be interested feel free to shoot me an email.
    I look forward to hearing from you! Great blog by the way!

    Reply
  17. Thank you for the sensible critique. Me & my neighbor were just preparing to do some research about this. We got a grab a book from our local library but I think I learned more from this post. I am very glad to see such excellent info being shared freely out there.

    Reply
  18. It’s perfect time to make a few plans for the
    future and it’s time to be happy. I have read this post and
    if I may I wish to counsel you few fascinating issues or tips.
    Perhaps you could write subsequent articles relating to this
    article. I wish to learn even more things about it!

    Reply
  19. I think this is one of the most important info for me. And i am glad reading your
    article. But want to remark on few general things, The web site style is
    perfect, the articles is really excellent : D. Good job, cheers

    Reply
  20. It is perfect time to make some plans for the future and it is time to be happy.
    I have read this post and if I could I wish to suggest you some interesting things or
    tips. Perhaps you could write next articles referring to this article.
    I want to read even more things about it!

    Reply
  21. I have been browsing online more than 2 hours today, yet I never found any
    interesting article like yours. It’s pretty worth enough for me.
    In my opinion, if all web owners and bloggers made good content
    as you did, the internet will be much more useful than ever before.

    Reply
  22. I think this is among the most significant information for me.
    And i’m glad reading your article. But should remark on some
    general things, The web site style is wonderful, the
    articles is really excellent : D. Good job, cheers

    Reply
  23. Thank you a lot for sharing this with all of us you actually
    know what you’re speaking about! Bookmarked. Please additionally visit my website =).

    We could have a hyperlink trade arrangement between us

    Reply
  24. I seriously love your blog.. Excellent colors & theme.
    Did you create this web site yourself? Please reply back as I’m
    hoping to create my very own website and would like to learn where you got this from or what the theme is named.
    Thanks!

    Reply
  25. I’ll right away grab your rss feed as I can’t in finding your email subscription hyperlink or e-newsletter service.
    Do you have any? Please let me understand so that I may just subscribe.
    Thanks.

    Reply
  26. I have been browsing online more than 2 hours today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. Personally,
    if all web owners and bloggers made good content as you did, the internet will be much
    more useful than ever before.

    Reply
  27. Its such as you read my mind! You seem to understand so much approximately this, like you wrote the e-book in it or something. I feel that you just could do with some p.c. to pressure the message house a bit, however instead of that, that is fantastic blog. A great read. I will certainly be back.

    Reply
  28. Pingback: viagra alternative
  29. Pingback: viagra online usa
  30. Pingback: buy generic viagra
  31. Pingback: viagra otc
  32. Pingback: buy cialis cheap
  33. Pingback: cialis 10
  34. Pingback: cialis cost
  35. Pingback: sildenafil generic
  36. Pingback: generic viagra
  37. Pingback: cialis tab 10mg
  38. Pingback: otc viagra
  39. Pingback: sildenafil canada
  40. Pingback: viagracarme
  41. Pingback: viagra coupon
  42. Pingback: ebay cialis
  43. Pingback: sildenafil coupon
  44. Pingback: canadian viagra
  45. Pingback: cvs viagra
  46. Pingback: womens viagra
  47. Pingback: walmart viagra
  48. Pingback: viagra for women
  49. Pingback: natural viagra
  50. Pingback: viagra pill
  51. Pingback: viagra or cialis

Leave a Comment