Latest Changes #1
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: eknoor547/Assignment_4#1
Loading…
Reference in a new issue
No description provided.
Delete branch "assignment-4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Latest Changesto WIP: Latest ChangesWIP: Latest Changesto Latest ChangesI have implemented all the changes but for point 2 in the feedback it was mentioned in the assignment to use "React Query for efficient data fetching and caching" under technical features section. So That' s why I implemented that. Rest of the changes have been done.
@ -0,0 +15,4 @@
<Users className="info-icon" />
{recipe?.servings || '4'} servings
</div>
{console.log(recipe?.servings)}
The static value '4' used as a fallback for recipe?.servings is incorrect. Consider providing a more dynamic or meaningful default value.
Extra classes in RecipeCard: Review and remove any unnecessary CSS classes to simplify the component and improve performance.
Avoid leaving console logs in the production code; remove or replace them with appropriate error handling or logging mechanisms.
Ensure the code is formatted properly to improve readability and maintain consistency.
Why use useReducer: Clarify why useReducer is being used in this context instead of useState. This explanation can help understand the rationale for state management choices.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.