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(store): dispatch return observable should be <void> #2109

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

arturovt
Copy link
Member

This commit updates all dispatch signatures to return Observable<void>. Initially, the signature was intended to be void, but historically, it was returning Observable<any>, where any represents the state snapshot.

This is a breaking change. We've been delaying this fix for years, but now all the necessary changes should finally be made to allow us to progress with the NGXS code itself. It's especially important to clean up old planned todos as well.

Copy link

nx-cloud bot commented Mar 14, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 5f4992e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 4 targets

Sent with 💌 from NxCloud.

Copy link

bundlemon bot commented Mar 14, 2024

BundleMon (Integration Projects)

Unchanged files (2)
Status Path Size Limits
Main bundles(Gzip)
hello-world-ng17/dist-integration/main.(hash)
.js
68.38KB +1%
Main bundles(Gzip)
hello-world-ng16/dist-integration/main.(hash)
.js
66.87KB +1%

No change in files bundle size

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

This commit updates all `dispatch` signatures to return `Observable<void>`. Initially, the
signature was intended to be `void`, but historically, it was returning `Observable<any>`,
where `any` represents the state snapshot.

This is a breaking change. We've been delaying this fix for years, but now all the necessary
changes should finally be made to allow us to progress with the NGXS code itself. It's especially
important to clean up old planned todos as well.
@arturovt arturovt force-pushed the fix/dispatch-void branch from 963d9fb to 5f4992e Compare March 15, 2024 17:06
Copy link

codeclimate bot commented Mar 15, 2024

Code Climate has analyzed commit 5f4992e and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 93.3% (50% is the threshold).

This pull request will bring the total coverage in the repository to 95.5% (0.0% change).

View more on Code Climate.

@arturovt arturovt marked this pull request as ready for review March 15, 2024 17:13
@arturovt arturovt merged commit f7a49be into master Mar 15, 2024
12 checks passed
@arturovt arturovt deleted the fix/dispatch-void branch March 15, 2024 17:13
@markwhitfeld markwhitfeld added this to the v.18.0.0 milestone Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants