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: refactor snippet-config-extra-params to use watchers preventing false event firing #1393

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

CachedaCodes
Copy link
Contributor

@CachedaCodes CachedaCodes commented Jan 15, 2024

EMP-3052

Motivation and context

The component SnippetConfigExtraParams was causing the firing of the event ExtraParamsProvided when the snippet config changed, even if the extra params didn't actually change. This PR changes the logic from a computed property to two watchers, preventing the bug.

  • Dependencies. If any, specify:
  • Open issue. If applicable, link:

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that causes existing functionality to not work as expected)
  • Change requires a documentation update

What is the destination branch of this PR?

  • Main
  • Other. Specify:

How has this been tested?

Check that updating a parameter in the snippet config with InterfaceX.setSnippetConfig that is exclueded from the extra params doesn't fire ExtraParamsProvided.

@CachedaCodes CachedaCodes requested a review from a team as a code owner January 15, 2024 09:41
@diegopf diegopf self-requested a review January 16, 2024 12:12
Copy link
Contributor

@diegopf diegopf left a comment

Choose a reason for hiding this comment

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

what about adding a test for this scenario?

@CachedaCodes CachedaCodes merged commit 73a7a1b into main Jan 22, 2024
4 checks passed
@CachedaCodes CachedaCodes deleted the fix/EMP-3052-false-firing-of-ExtraParamsProvided branch January 22, 2024 08:20
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