Skip to content

fix(core): allow effect to be used inside an ErrorHandler#53713

Closed
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:52680/error-handler-effect
Closed

fix(core): allow effect to be used inside an ErrorHandler#53713
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:52680/error-handler-effect

Conversation

@crisbeto
Copy link
Copy Markdown
Member

effect was expecting an ErrorHandler in its constructor which can lead to a circular DI error if an effect is used inside a custom ErrorHandler. These changes inject the ErrorHandler only when reporting errors.

Fixes #52680.

@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release labels Dec 28, 2023
@ngbot ngbot bot added this to the Backlog milestone Dec 28, 2023
`effect` was expecting an `ErrorHandler` in its constructor which can lead to a circular DI error if an effect is used inside a custom `ErrorHandler`. These changes inject the `ErrorHandler` only when reporting errors.

Fixes angular#52680.
@crisbeto crisbeto force-pushed the 52680/error-handler-effect branch from a2ba68b to 7f6a38d Compare December 28, 2023 09:19
@crisbeto crisbeto marked this pull request as ready for review December 28, 2023 10:08
@atscott atscott added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 28, 2023
@atscott atscott removed the request for review from pkozlowski-opensource December 28, 2023 15:34
@atscott
Copy link
Copy Markdown
Contributor

atscott commented Jan 3, 2024

This PR was merged into the repository by commit 2b9a850.

atscott pushed a commit that referenced this pull request Jan 3, 2024
`effect` was expecting an `ErrorHandler` in its constructor which can lead to a circular DI error if an effect is used inside a custom `ErrorHandler`. These changes inject the `ErrorHandler` only when reporting errors.

Fixes #52680.

PR Close #53713
@atscott atscott closed this in 2b9a850 Jan 3, 2024
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
)

`effect` was expecting an `ErrorHandler` in its constructor which can lead to a circular DI error if an effect is used inside a custom `ErrorHandler`. These changes inject the `ErrorHandler` only when reporting errors.

Fixes angular#52680.

PR Close angular#53713
rlmestre pushed a commit to rlmestre/angular that referenced this pull request Jan 26, 2024
)

`effect` was expecting an `ErrorHandler` in its constructor which can lead to a circular DI error if an effect is used inside a custom `ErrorHandler`. These changes inject the `ErrorHandler` only when reporting errors.

Fixes angular#52680.

PR Close angular#53713
amilamen pushed a commit to amilamen/angular that referenced this pull request Jan 26, 2024
)

`effect` was expecting an `ErrorHandler` in its constructor which can lead to a circular DI error if an effect is used inside a custom `ErrorHandler`. These changes inject the `ErrorHandler` only when reporting errors.

Fixes angular#52680.

PR Close angular#53713
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

effect and computed throws circular dependency when ErrorHandler creates effect computed during construction (or one of its dependencies does)

2 participants