<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Priyansh Agrawal</title>
    <description>The latest articles on DEV Community by Priyansh Agrawal (@priyansh2).</description>
    <link>https://dev.to/priyansh2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1208867%2F76ae85ae-ff5e-4aaf-8f08-22083aab48af.jpeg</url>
      <title>DEV Community: Priyansh Agrawal</title>
      <link>https://dev.to/priyansh2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/priyansh2"/>
    <language>en</language>
    <item>
      <title>HELP!! How to limit multiple API calls after the first call</title>
      <dc:creator>Priyansh Agrawal</dc:creator>
      <pubDate>Mon, 01 Jan 2024 07:43:59 +0000</pubDate>
      <link>https://dev.to/priyansh2/limit-multiple-api-calls-post-the-first-36ia</link>
      <guid>https://dev.to/priyansh2/limit-multiple-api-calls-post-the-first-36ia</guid>
      <description>&lt;p&gt;I have a question: I trigger the POST request upon the button click event. The API creates entries in the database and takes around 1 second on average. My issue is that users can press the button multiple times before the first API request is completed, creating numerous resources. I attempted to implement a pre-check before making any database changes and returning an exception which is then displayed on the UI with an appropriate message. I don't know whether it's the correct way to handle the problem. How can I prevent multiple API calls after the first one?&lt;/p&gt;

</description>
      <category>restapi</category>
      <category>systemdesign</category>
      <category>discuss</category>
      <category>help</category>
    </item>
  </channel>
</rss>
