Skip to content

fix(http): check whether Zone is defined#51119

Closed
arturovt wants to merge 1 commit intoangular:mainfrom
arturovt:fix/http-fetch-zone
Closed

fix(http): check whether Zone is defined#51119
arturovt wants to merge 1 commit intoangular:mainfrom
arturovt:fix/http-fetch-zone

Conversation

@arturovt
Copy link
Copy Markdown
Contributor

Accessing the Zone variable without checking if it's defined or not leads to an error "Zone is not defined" if zone.js is not imported (nooped). This commit adds an additional check before getting the current zone where the doRequest is being called.

Accessing the `Zone` variable without checking if it's defined or not
leads to an error "Zone is not defined" if zone.js is not imported (nooped).
This commit adds an additional check before getting the current zone where
the `doRequest` is being called.
Copy link
Copy Markdown
Member

@JeanMeche JeanMeche left a comment

Choose a reason for hiding this comment

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

LGTM

@jessicajaniuk jessicajaniuk added the area: common/http Issues related to HTTP and HTTP Client label Jul 20, 2023
@ngbot ngbot bot added this to the Backlog milestone Jul 20, 2023
@jessicajaniuk jessicajaniuk added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jul 20, 2023
Copy link
Copy Markdown
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

@arturovt thanks for the improvement!

@AndrewKushnir AndrewKushnir 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 Jul 21, 2023
@AndrewKushnir AndrewKushnir removed the request for review from pkozlowski-opensource July 21, 2023 16:10
@jessicajaniuk
Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 57e8412.

jessicajaniuk pushed a commit that referenced this pull request Jul 21, 2023
Accessing the `Zone` variable without checking if it's defined or not
leads to an error "Zone is not defined" if zone.js is not imported (nooped).
This commit adds an additional check before getting the current zone where
the `doRequest` is being called.

PR Close #51119
@arturovt arturovt deleted the fix/http-fetch-zone branch July 21, 2023 21:59
sunilbaba pushed a commit to sunilbaba/angular that referenced this pull request Jul 26, 2023
Accessing the `Zone` variable without checking if it's defined or not
leads to an error "Zone is not defined" if zone.js is not imported (nooped).
This commit adds an additional check before getting the current zone where
the `doRequest` is being called.

PR Close angular#51119
@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 Aug 21, 2023
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
Accessing the `Zone` variable without checking if it's defined or not
leads to an error "Zone is not defined" if zone.js is not imported (nooped).
This commit adds an additional check before getting the current zone where
the `doRequest` is being called.

PR Close angular#51119
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: common/http Issues related to HTTP and HTTP Client target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants