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(extra-params): give more priority to values prop over params state in the ExtraParamsProvided payload #1700

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

joseacabaneros
Copy link
Member

Pull request template

This PR gives more priority to the values prop over params state in the ExtraParamsProvided payload

Motivation and context

MotiveMarket renders the ExtraParams component with each area changing, passing a new values prop each time. The store state has already params of the previous area, so emits ExtraParamsProvided XEvent with old area because in the merge, params from the state has more priority.

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:

@joseacabaneros joseacabaneros requested a review from a team as a code owner January 28, 2025 11:49
AdrianArenal
AdrianArenal previously approved these changes Jan 28, 2025
import ExtraParams from '../extra-params.vue';
import { useState } from '../../../../composables/index';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import { useState } from '../../../../composables/index';
import { useState } from '../../../../composables';

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@diegopf diegopf merged commit d924211 into main Jan 28, 2025
4 checks passed
@diegopf diegopf deleted the extra-params-merge-strategy branch January 28, 2025 17:56
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