Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Make sure recipe state is updated correctly #2566

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

lindell
Copy link
Contributor

@lindell lindell commented Sep 23, 2023

What type of PR is this?

  • bug

What this PR does / why we need it:

Any computed state in the recipe page view will not update when the ref does update.

This PR does the following to fix this:
Instead of saving all values (including the computed refs) in the memo cache, only save Refs.
Then return a new object with new computed values, based on the saved Refs, each time usePageState is called.

Which issue(s) this PR fixes:

Fixes #2273

Release Notes

Fix changes in the recipe page not being made when a recipe is reopened

@hay-kot hay-kot merged commit 40ab328 into mealie-recipes:mealie-next Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v1.0.0beta-5] Sometimes Recipe Edit button does not do anything
2 participants