Open avoesen opened 5 months ago
We can reuse this existing fetch from the myRecipes.js for this:
const {
data: myRecipes,
error: recipesError,
isLoading: recipesIsLoading,
} = useSWR(/api/recipes?author=${user?._id}
);
It would be cool if you could still see who created the recipes and therefore be able to quickly get to the user page.
Value proposition
As a user I want to be able to view all recipes created by a specific user In order to explore their culinary creations and potentially find inspiration for my own cooking endeavors.
Description
The user desires the capability to access and browse through all recipes associated with a particular user. This feature will allow the user to discover a comprehensive list of recipes authored by the selected user, enabling them to explore various dishes and potentially replicate them in their own cooking endeavors.
Acceptance criteria
Tasks
myRecipes.js
and just show the recipes of the user