someshkar / covid19india-cluster

:microscope: Covid19 India Cluster Graph
https://cluster.covid19india.org
MIT License
989 stars 654 forks source link

API Covid19india called twice on home page | Performance Improvement #209

Open manik96m opened 4 years ago

manik96m commented 4 years ago

Describe the bug The API call for Covid19india is made twice on the homepage. Sometimes this call is made more than twice as well.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://cluster.covid19india.org/'
  2. Open the network tab in the debugger to check the API calls.

Expected behavior API call for Covid19india should only be made once to get the data.

Screenshots

Screenshot 2020-04-11 at 9 38 13 PM

Desktop

manik96m commented 4 years ago

I have added a fix in this PR. Please check.