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(shareLatest): properly closing sync observables #194

Merged
merged 1 commit into from May 7, 2021

Conversation

josepot
Copy link
Member

@josepot josepot commented May 6, 2021

Basically, bringing this to react-rxjs

@josepot josepot requested a review from voliva May 6, 2021 11:43
@@ -49,29 +65,14 @@ const shareLatest = <T>(
subject!.complete()
},
)
if (subscription.closed) subscription = null
Copy link
Member Author

Choose a reason for hiding this comment

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

No longer needed! 🎉

Copy link
Collaborator

Choose a reason for hiding this comment

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

good one

@codecov
Copy link

codecov bot commented May 6, 2021

Codecov Report

Merging #194 (3544675) into main (51148d1) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #194   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           27        27           
  Lines          451       451           
  Branches        63        62    -1     
=========================================
  Hits           451       451           
Impacted Files Coverage Δ
packages/core/src/internal/share-latest.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 51148d1...3544675. Read the comment docs.

@@ -49,29 +65,14 @@ const shareLatest = <T>(
subject!.complete()
},
)
if (subscription.closed) subscription = null
Copy link
Collaborator

Choose a reason for hiding this comment

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

good one

@josepot josepot merged commit c6b4010 into main May 7, 2021
@josepot josepot deleted the fix/sync-firehose-observables branch May 7, 2021 08:11
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.

None yet

2 participants