dawsonc / recipes

A website for organizing recipes
MIT License
0 stars 0 forks source link

[BUG] Recipe list doesn't refresh after creating a new recipe #11

Open dawsonc opened 1 year ago

dawsonc commented 1 year ago

Describe the bug After creating a new recipe, the recipe list (and list of tags and authors) doesn't refresh unless you reload the page.

To Reproduce Steps to reproduce the behavior:

  1. Add a new recipe
  2. Click save
  3. Observe that the recipe list does not refresh

Expected behavior I would like the recipe list and tags+authors to immediately update to display the new recipe.

Desktop (please complete the following information):

Additional context Could this be caused by React async BS?

dawsonc commented 1 year ago

This might be due to the search recipes endpoint being /api/recipes/ rather than /api/recipes