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): decouple state signal updates from synchronous changes #2189

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

arturovt
Copy link
Member

@arturovt arturovt commented Jul 9, 2024

In this commit, we decouple state signal updates from synchronous changes to adhere to constraints on updates inside effects. Situations may arise where actions are dispatched within effects, and if these actions are synchronous, the state signal would also receive synchronous updates. This can lead to an error indicating that signal writes are not permitted within effects.

Resolves #2180

In this commit, we decouple state signal updates from synchronous changes to adhere
to constraints on updates inside effects. Situations may arise where actions are
dispatched within effects, and if these actions are synchronous, the state signal
would also receive synchronous updates. This can lead to an error indicating that
signal writes are not permitted within effects.
Copy link

nx-cloud bot commented Jul 9, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 75bb611. 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 Jul 9, 2024

BundleMon (Integration Projects)

Files updated (2)
Status Path Size Limits
Main bundles(Gzip)
hello-world-ng17/dist-integration/main.(hash)
.js
69.46KB (+953B +1.36%) +1%
Main bundles(Gzip)
hello-world-ng16/dist-integration/main.(hash)
.js
68.47KB (+945B +1.37%) +1%

Total files change +1.85KB +1.36%

Final result: ❌

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Copy link

codeclimate bot commented Jul 10, 2024

Code Climate has analyzed commit 75bb611 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.4% (0.0% change).

View more on Code Climate.

@arturovt arturovt merged commit 57133c3 into master Jul 10, 2024
13 checks passed
@arturovt arturovt deleted the fix/2180 branch July 10, 2024 16:23
@markwhitfeld markwhitfeld added this to the v18.1.0 milestone Jul 30, 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.

🐞[BUG]: Dispatching an Action within an effect causes an error
2 participants