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(core): allow effect to be used inside an ErrorHandler #53713

Closed
wants to merge 1 commit into from

Conversation

crisbeto
Copy link
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 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
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
danieljancar pushed a commit to danieljancar/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

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
2 participants