MoizSamee / IS7024

0 stars 1 forks source link

Cache data in page #13

Open discospiff opened 3 years ago

discospiff commented 3 years ago

Since the OnGet fires first, keep the information stored locally in the page, then filter it on the OnPost. No need to fetch the data anew each time the user filters. That results in excessive network traffic. Network calls can slow down the response time.

https://github.com/MoizSamee/IS7024/blob/868ed3650931b32d6b10993ef9ef37636d6575ed/Covinator/Covinator/Pages/PfizerVaccination.cshtml.cs#L90