Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

154
Views
Dynamically add and execute the script tag during two subsequent API calls using react

For example: ApiCall1 has below response: { url: 'somescript.js' }

I need to add this url dynamically in script tag like <script src='somescript.js' async /> This script should execute and return some data. This data needs to be immediately sent in the payload of subsequent API call say ApiCall2.

While all this is happening, a loading indicator should be displayed.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

calling first shows the loader but after calling the second API doesn't show the loader you can do that in a background process.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!