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): show error when state initialization order is invalid #2066

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

arturovt
Copy link
Member

This commit adds a console.error when the UpdateState is dispatched before the InitState. This typically indicates that the state initialization order is invalid and must be updated to ensure that states are initialized in the correct order. The incorrect order may prevent ngxsOnInit from being called on feature states or lead to other unpredictable errors.

This commit adds a `console.error` when the `UpdateState` is dispatched before
the `InitState`. This typically indicates that the state initialization order is
invalid and must be updated to ensure that states are initialized in the correct
order. The incorrect order may prevent `ngxsOnInit` from being called on feature
states or lead to other unpredictable errors.
@bundlemon
Copy link

bundlemon bot commented Sep 26, 2023

BundleMon (Integration Projects)

Unchanged files (1)
Status Path Size Limits
Main bundles(Gzip)
hello-world-ng15/dist-integration/main.(hash)
.js
63.35KB +1%

Total files change +3B 0%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@nx-cloud
Copy link

nx-cloud bot commented Sep 26, 2023

☁️ Nx Cloud Report

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

📂 See all runs for this branch


✅ Successfully ran 3 targets

Sent with 💌 from NxCloud.

@codeclimate
Copy link

codeclimate bot commented Sep 26, 2023

Code Climate has analyzed commit 651fb3a 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 95.5% (0.0% change).

View more on Code Climate.

Copy link
Member

@markwhitfeld markwhitfeld left a comment

Choose a reason for hiding this comment

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

Please add to the change log

Copy link
Contributor

@Carniatto Carniatto left a comment

Choose a reason for hiding this comment

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

LGTM

@arturovt arturovt merged commit b132a8a into master Sep 27, 2023
@arturovt arturovt deleted the fix/invalid-order-error branch September 27, 2023 17:50
@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.

3 participants