Skip to content

fix: race adding handler during init #501

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

Merged
merged 1 commit into from
Jul 22, 2023
Merged

Conversation

toddbaert
Copy link
Member

@toddbaert toddbaert commented Jul 22, 2023

Fixes a race condition that prevents handlers added while their provider is initializing from running.

@toddbaert toddbaert requested a review from a team as a code owner July 22, 2023 05:21
@toddbaert toddbaert force-pushed the fix/init-emitter-race branch from ae78ef9 to 51c24d7 Compare July 22, 2023 05:25
Copy link
Member

@lukas-reining lukas-reining left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@toddbaert toddbaert merged commit 0be9c5d into main Jul 22, 2023
@toddbaert toddbaert deleted the fix/init-emitter-race branch July 22, 2023 14:57
toddbaert pushed a commit that referenced this pull request Jul 22, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.0.8](shared-v0.0.7...shared-v0.0.8)
(2023-07-22)


### Features

* typesafe event emitter
([#490](#490))
([92e3a72](92e3a72))


### Bug Fixes

* race adding handler during init
([#501](#501))
([0be9c5d](0be9c5d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
beeme1mr pushed a commit that referenced this pull request Jul 24, 2023
🤖 I have created a release *beep* *boop*
---


##
[1.4.0](js-sdk-v1.3.3...js-sdk-v1.4.0)
(2023-07-22)


### Features

* typesafe event emitter
([#490](#490))
([92e3a72](92e3a72))


### Bug Fixes

* race adding handler during init
([#501](#501))
([0be9c5d](0be9c5d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
beeme1mr pushed a commit that referenced this pull request Jul 24, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.3.8-experimental](web-sdk-v0.3.7-experimental...web-sdk-v0.3.8-experimental)
(2023-07-24)


### Features

* typesafe event emitter
([#490](#490))
([92e3a72](92e3a72))


### Bug Fixes

* onContextChanged not running for named providers
([#491](#491))
([1ab0cc6](1ab0cc6))
* race adding handler during init
([#501](#501))
([0be9c5d](0be9c5d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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