Commit fc2824b
committed
feat: Add async/await to generateStats function for improved loading experience
The code changes include adding the `async` keyword and `await` keyword to the `generateStats` function in the `GenerateStats` component. This allows for asynchronous fetching of data from the API endpoint, improving the loading experience for the user. Additionally, error handling has been added to display appropriate toast notifications in case of errors.
Recent user commits:
- Added skeleton loading component
- Update Navbar component with responsive styling and search functionality
- Add react-toastify dependency and implement toast notifications
- Add mongoose dependency and create API endpoints for fetching and adding user data
- Add PromotionCard component to Home page + api working
Recent repository commits:
- Update Card component with additional styling for responsiveness
- Update Navbar component with responsive styling and search functionality
- Add lazy loading for images and update grid layout in home page
- card component created1 parent de1f948 commit fc2824b
2 files changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments