Replies: 1 comment
-
Update: I was calling Eval in one of the loop, that was throwing a hooks error. Not sure if that's the expected behaviour, but in my case, I can do without eval by refactoring. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have situations where I need to send several requests at once or consecutively and update the UI once each of these requests have returned a response.
Situation #1
I have added a number of collaborators. There's a
invite all
button that when clicked should send a put/post request to the backend, which will then send invites to the emails. The backend, only accepts one email at a time, so I have to send multiple request.Situation #2
I have a number of number fields that can be updated. But there's only one
update
button. The backend again only allows a put request for one value at a time.I was using a loop to send each request but that now throws a hook's violation on runtime. Plus, I'm thinking it's perhaps too simplistic/crude. I tried a coroutine handle but that didn't work either.
How do I structure this?
Beta Was this translation helpful? Give feedback.
All reactions