Skip to content

feat: Display source environment in LaunchDevly UI#418

Merged
cdelst merged 1 commit into
mikezorn/sc-254693/validate-overrides-against-what-s-in-thefrom
cdelst/sc-254687/display-source-environment-in-ui
Sep 4, 2024
Merged

feat: Display source environment in LaunchDevly UI#418
cdelst merged 1 commit into
mikezorn/sc-254693/validate-overrides-against-what-s-in-thefrom
cdelst/sc-254687/display-source-environment-in-ui

Conversation

@cdelst
Copy link
Copy Markdown
Contributor

@cdelst cdelst commented Sep 4, 2024

Requirements

image

@cdelst cdelst requested a review from mike-zorn September 4, 2024 00:04
@cdelst cdelst changed the title Display source environment in LaunchDevly UI [feat] Display source environment in LaunchDevly UI Sep 4, 2024
@cdelst cdelst changed the title [feat] Display source environment in LaunchDevly UI feat: Display source environment in LaunchDevly UI Sep 4, 2024
>({});

const overridesPresent = overrides && Object.keys(overrides).length > 0;
const overridesPresent = useMemo(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

best practice to not recalculate these every time

...{
[flagKey]: {
value: overrideValue,
const updateOverride = useCallback(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

useCallback lets us cache this func definition between renders

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do we want that though? We closure in the override state...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ohhh, I see you also pass in the deps.

@cdelst cdelst merged commit 1e92281 into mikezorn/sc-254693/validate-overrides-against-what-s-in-the Sep 4, 2024
@cdelst cdelst deleted the cdelst/sc-254687/display-source-environment-in-ui branch September 4, 2024 01: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.

2 participants