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: Select correct recipes when switching views #610

Merged
merged 5 commits into from
Oct 11, 2023

Conversation

henrikbossart
Copy link
Contributor

What does this pull request change?

There currently is a bug where the previous recipe is used when selecting a new plugin/app. I'm fairly certain that happens because of some state dependencies that don't work out correctly.

The useRecipe() hook is/was dependent on state variables from the useBlueprint() hook, but state variables are not updated before a re-render occurs. That means the useRecipe hooks is/was always getting the previous values, and not the current ones.

Why is this pull request needed?

Issues related to this change

@henrikbossart henrikbossart marked this pull request as ready for review October 11, 2023 10:47
@henrikbossart henrikbossart requested a review from a team as a code owner October 11, 2023 10:47
@henrikbossart henrikbossart merged commit 88b8c8c into main Oct 11, 2023
6 checks passed
@henrikbossart henrikbossart deleted the fix/wrong-recipes-selected branch October 11, 2023 13:09
@github-actions github-actions bot mentioned this pull request Oct 11, 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.

2 participants