Skip to content

fix: missing .get() in useDerivedValue mock #6809

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

Conversation

kirillzyusko
Copy link
Contributor

Summary

In #6312 new API with get/set methods was added.

However mock implementation wasn't updated and useDerivedValue still returns only value. This PR fixes this problem and returns getter as well.

Test plan

Run test that uses .get() on a value returned from useDerivedValue,

Copy link
Collaborator

@tjzel tjzel left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

@tjzel tjzel added this pull request to the merge queue Dec 12, 2024
Merged via the queue into software-mansion:main with commit e39d35c Dec 12, 2024
9 checks passed
tjzel added a commit that referenced this pull request Dec 13, 2024
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

In #6312
new API with `get`/`set` methods was added.

However mock implementation wasn't updated and `useDerivedValue` still
returns only `value`. This PR fixes this problem and returns getter as
well.

## Test plan

Run test that uses `.get()` on a value returned from `useDerivedValue`,

Co-authored-by: Tomasz Żelawski <[email protected]>
tjzel added a commit that referenced this pull request Dec 13, 2024
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

In #6312
new API with `get`/`set` methods was added.

However mock implementation wasn't updated and `useDerivedValue` still
returns only `value`. This PR fixes this problem and returns getter as
well.

## Test plan

Run test that uses `.get()` on a value returned from `useDerivedValue`,

Co-authored-by: Tomasz Żelawski <[email protected]>
tjzel added a commit that referenced this pull request Dec 13, 2024
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

In #6312
new API with `get`/`set` methods was added.

However mock implementation wasn't updated and `useDerivedValue` still
returns only `value`. This PR fixes this problem and returns getter as
well.

## Test plan

Run test that uses `.get()` on a value returned from `useDerivedValue`,

Co-authored-by: Tomasz Żelawski <[email protected]>
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