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: fix #3716 warning #3717

Merged
merged 1 commit into from
Oct 26, 2022
Merged

fix: fix #3716 warning #3717

merged 1 commit into from
Oct 26, 2022

Conversation

hannojg
Copy link
Contributor

@hannojg hannojg commented Oct 25, 2022

Description

Fixes #3716

Changes

Check if listers have been set up, and only if so send events.

Test code and steps to reproduce

See reproduction in #3716.
Then add the changes I added, and the warnings will disappear.

Checklist

  • Included code example that can be used to test this change
  • Updated TS types
  • Added TS types tests
  • Added unit / integration tests
  • Updated documentation
  • Ensured that CI passes

checking if listerners are attached to prevent sending events without listeners
hannojg added a commit to margelo/expensify-app-fork that referenced this pull request Oct 25, 2022
@tomekzaw
Copy link
Member

Hey @hannojg, thanks for the PR! We'll review and test it as soon as possible.

@piaskowyk piaskowyk merged commit 0380104 into software-mansion:main Oct 26, 2022
piaskowyk pushed a commit that referenced this pull request Oct 26, 2022
## Description

<!--
Description and motivation for this PR.

Include Fixes #<number> if this is fixing some issue.

Fixes # .
-->

Fixes #3716

## Changes

<!--
Please describe things you've changed here, make a **high level**
overview, if change is simple you can omit this section.

For example:

- Added `foo` method which add bouncing animation
- Updated `about.md` docs
- Added caching in CI builds

-->

Check if listers have been set up, and only if so send events. 

<!--

## Screenshots / GIFs

Here you can add screenshots / GIFs documenting your change.

You can add before / after section if you're changing some behavior.

### Before

### After

-->

## Test code and steps to reproduce

<!--
Please include code that can be used to test this change and short
description how this example should work.
This snippet should be as minimal as possible and ready to be pasted
into editor (don't exclude exports or remove "not important" parts of
reproduction example)
-->

See reproduction in #3716.
Then add the changes I added, and the warnings will disappear.

## Checklist

- [x] Included code example that can be used to test this change
- [x] Updated TS types
- [x] Added TS types tests
- [x] Added unit / integration tests
- [x] Updated documentation
- [x] Ensured that CI passes
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
## Description

<!--
Description and motivation for this PR.

Include Fixes #<number> if this is fixing some issue.

Fixes # .
-->

Fixes software-mansion#3716

## Changes

<!--
Please describe things you've changed here, make a **high level**
overview, if change is simple you can omit this section.

For example:

- Added `foo` method which add bouncing animation
- Updated `about.md` docs
- Added caching in CI builds

-->

Check if listers have been set up, and only if so send events. 

<!--

## Screenshots / GIFs

Here you can add screenshots / GIFs documenting your change.

You can add before / after section if you're changing some behavior.

### Before

### After

-->

## Test code and steps to reproduce

<!--
Please include code that can be used to test this change and short
description how this example should work.
This snippet should be as minimal as possible and ready to be pasted
into editor (don't exclude exports or remove "not important" parts of
reproduction example)
-->

See reproduction in software-mansion#3716.
Then add the changes I added, and the warnings will disappear.

## Checklist

- [x] Included code example that can be used to test this change
- [x] Updated TS types
- [x] Added TS types tests
- [x] Added unit / integration tests
- [x] Updated documentation
- [x] Ensured that CI passes
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.

WARN Sending onReanimatedPropsChange with no listeners registered.
3 participants