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

feat: change useHybridInject so it works more like vue inject #1427

Conversation

CachedaCodes
Copy link
Contributor

@CachedaCodes CachedaCodes commented Mar 4, 2024

EMP-3636

Pull request template

useHybridInject and vue's regular inject weren't behaving the same, so we made some changes in the composable.

Motivation and context

Handling reactiveness wasn't working as expected.

  • 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?

Use useHybridInject to inject the snippet config, wrap that call in a ref and try to watch changes in the filters property when changing its array value.

@CachedaCodes CachedaCodes requested a review from a team as a code owner March 4, 2024 14:31
Copy link
Contributor

@annacv annacv left a comment

Choose a reason for hiding this comment

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

gj!

@annacv annacv merged commit f7e2946 into main Mar 4, 2024
4 checks passed
@annacv annacv deleted the feature/EMP-3636-redo-useHybridInject-so-it-works-more-like-regular-inject branch March 26, 2024 10:42
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