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(entities-routes): invisible expressions editor sometimes #1814

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

sumimakito
Copy link
Member

Summary

This pull request fixes an issue where the expressions editor became invisible sometimes

KM-737

@@ -97,19 +98,19 @@ export interface ExpressionsRouteStateFields {
}

export interface RouteState<Fields extends BaseRouteStateFields> {
routeFlavors: RouteFlavors // For better type narrowing
routeFlavors: MaybeRef<RouteFlavors> // For better type narrowing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MaybeRef is not necessary here, reactive() will automatically unwrap the ref during the creating stage

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MaybeRef was for the input type of reactive(...), but I have moved away from the implicit ref unwrapping mechanism and will explicitly update the state with a watcher.

@sumimakito sumimakito marked this pull request as ready for review November 26, 2024 07:58
@sumimakito sumimakito requested review from a team as code owners November 26, 2024 07:58
@Leopoldthecoder Leopoldthecoder merged commit 89e091a into main Nov 26, 2024
10 checks passed
@Leopoldthecoder Leopoldthecoder deleted the KM-737-invisible-expressions-editor branch November 26, 2024 09:01
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.

3 participants