This issue follows the trail of #218. It would introduce a better pattern for managing multiple API calls for a single view (considering Knack rate limits), reduce maintenance, and improve extensibility.
What if all of our requests lived in an array prioritized by order of importance.
And then we could write a function that programmatically goes through that list and calls the api request with the item.id. That function could space all the calls by .250 sec so we're at most making 4 calls a second. And it makes it easier for us to add more features to this page in the future.
This issue follows the trail of #218. It would introduce a better pattern for managing multiple API calls for a single view (considering Knack rate limits), reduce maintenance, and improve extensibility.
Resources: https://medium.com/better-programming/how-to-use-async-await-with-axios-in-react-e07daac2905f https://gist.github.com/wesbos/1866f918824936ffb73d8fd0b02879b4
Migrated from atd-mobile-signals-work-orders #220