Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API state_district_wise.json called twice on home page | Performance Improvement #205

Open
manik96m opened this issue Apr 3, 2020 · 1 comment

Comments

@manik96m
Copy link
Contributor

manik96m commented Apr 3, 2020

Describe the bug
The API call for state_district_wise.json is made twice on the homepage.

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 state_district_wise.json should only be made once to get the data.

Screenshots
Screenshot 2020-04-03 at 3 11 45 PM

Desktop

  • OS: MacOS
  • Browser: chrome
  • Version: 80.0.3987.149
@manik96m
Copy link
Contributor Author

manik96m commented Apr 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant