+
Skip to content

feat(store): add withNgxsNoopExecutionStrategy #2359

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 9, 2025
Merged

Conversation

arturovt
Copy link
Member

@arturovt arturovt commented Jul 8, 2025

Re institutes some of the behaviour that was lost in PR #2325.
Addresses the performance issues raised by issue #2358.

Copy link

nx-cloud bot commented Jul 8, 2025

View your CI Pipeline Execution ↗ for commit 85bca7d

Command Status Duration Result
nx run-many --target=test --all --configuration... ✅ Succeeded 2m 6s View ↗
nx run-many --target=lint --all --exclude=creat... ✅ Succeeded 6s View ↗
nx lint-types store ✅ Succeeded 4s View ↗
nx run-many --target=build --all ✅ Succeeded 1m 20s View ↗

☁️ Nx Cloud last updated this comment at 2025-07-09 11:33:16 UTC

Copy link

pkg-pr-new bot commented Jul 8, 2025

Open in StackBlitz

@ngxs/devtools-plugin

npm i https://pkg.pr.new/@ngxs/devtools-plugin@2359

@ngxs/form-plugin

npm i https://pkg.pr.new/@ngxs/form-plugin@2359

@ngxs/hmr-plugin

npm i https://pkg.pr.new/@ngxs/hmr-plugin@2359

@ngxs/router-plugin

npm i https://pkg.pr.new/@ngxs/router-plugin@2359

@ngxs/storage-plugin

npm i https://pkg.pr.new/@ngxs/storage-plugin@2359

@ngxs/store

npm i https://pkg.pr.new/@ngxs/store@2359

@ngxs/websocket-plugin

npm i https://pkg.pr.new/@ngxs/websocket-plugin@2359

commit: 85bca7d

Copy link

bundlemon bot commented Jul 8, 2025

BundleMon

Files updated (1)
Status Path Size Limits
fesm2022/ngxs-store.mjs
102.06KB (+984B +0.95%) 105KB / +0.5%
Unchanged files (5)
Status Path Size Limits
fesm2022/ngxs-store-internals.mjs
13.62KB 15KB / +0.5%
fesm2022/ngxs-store-internals-testing.mjs
10.32KB 13KB / +0.5%
fesm2022/ngxs-store-operators.mjs
6.05KB 7KB / +0.5%
fesm2022/ngxs-store-plugins.mjs
2.37KB 3KB / +0.5%
fesm2022/ngxs-store-experimental.mjs
574B 2KB / +0.5%

Total files change +984B +0.72%

Groups updated (1)
Status Path Size Limits
@ngxs/store(fesm2022)[gzip]
./fesm2022/*.mjs
33.03KB (+153B +0.45%) +1%

Final result: ❌

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Copy link

bundlemon bot commented Jul 8, 2025

BundleMon (NGXS Plugins)

Unchanged files (9)
Status Path Size Limits
Plugins(fesm2022)[gzip]
storage-plugin/fesm2022/ngxs-storage-plugin.m
js
3.95KB +0.5%
Plugins(fesm2022)[gzip]
router-plugin/fesm2022/ngxs-router-plugin.mjs
2.93KB +0.5%
Plugins(fesm2022)[gzip]
hmr-plugin/fesm2022/ngxs-hmr-plugin.mjs
2.7KB +0.5%
Plugins(fesm2022)[gzip]
websocket-plugin/fesm2022/ngxs-websocket-plug
in.mjs
2.58KB +0.5%
Plugins(fesm2022)[gzip]
form-plugin/fesm2022/ngxs-form-plugin.mjs
2.47KB +0.5%
Plugins(fesm2022)[gzip]
devtools-plugin/fesm2022/ngxs-devtools-plugin
.mjs
2.23KB +0.5%
Plugins(fesm2022)[gzip]
logger-plugin/fesm2022/ngxs-logger-plugin.mjs
2.03KB +0.5%
Plugins(fesm2022)[gzip]
storage-plugin/fesm2022/ngxs-storage-plugin-i
nternals.mjs
947B +0.5%
Plugins(fesm2022)[gzip]
router-plugin/fesm2022/ngxs-router-plugin-int
ernals.mjs
453B +0.5%

No change in files bundle size

Unchanged groups (1)
Status Path Size Limits
All Plugins(fesm2022)[gzip]
./-plugin/fesm2022/.mjs
20.25KB +0.5%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Copy link

bundlemon bot commented Jul 8, 2025

BundleMon (Integration Projects)

Unchanged files (1)
Status Path Size Limits
Main bundles(Gzip)
hello-world-ng20/dist-integration/browser/mai
n-(hash).js
67.03KB +1%

No change in files bundle size

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@markwhitfeld
Copy link
Member

@arturovt do you think we should name this withNgxsZonelessExecutionStrategy
or even withNgxsZoneless to be more explicit about when it should be used?

@markwhitfeld
Copy link
Member

@arturovt in addition to the above, do you think that we should also re-institute some of the tests as well as the dev mode warning removed by PR #2325 ?

@arturovt
Copy link
Member Author

arturovt commented Jul 9, 2025

It's not related to zoneless, because they want to use it in a zone.js app.

@arturovt
Copy link
Member Author

arturovt commented Jul 9, 2025

In zoneless both strategies act like a "noop".

Copy link

codeclimate bot commented Jul 9, 2025

Code Climate has analyzed commit 85bca7d and detected 0 issues on this pull request.

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

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

View more on Code Climate.

@arturovt arturovt marked this pull request as ready for review July 9, 2025 14:00
@arturovt arturovt merged commit 91a52d1 into master Jul 9, 2025
12 of 15 checks passed
@arturovt arturovt deleted the feat/noop branch July 9, 2025 14:01
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.

⚠️ [PERFORMANCE]: Performance decreased after forced removal of NoopNgxsExecutionStrategy
2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载