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

Attempt AddNetworkingHandler if HTTP module was not ready #11926

Merged
merged 7 commits into from
Jul 24, 2023

Conversation

JunielKatarn
Copy link
Contributor

@JunielKatarn JunielKatarn commented Jul 22, 2023

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

Under certain conditions (i.e. setting UseWebDebugger to false, Blob method addNetworkingHandler would be call prematurely.

Resolves #11439

What

If the Blob module HTTP resource dependency is not initialized when addNetworkingHandler is called, expose the underlying Blob resource using the property bag and re-invoke that Blob method once the HTTP resource is ready.

Testing

Applied changes to sample MSRN apps (i.e. react-native-gallery).

Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/react-native-windows/pull/11926&drop=dogfoodAlpha

@JunielKatarn JunielKatarn merged commit 791786e into microsoft:main Jul 24, 2023
44 checks passed
@JunielKatarn JunielKatarn deleted the GH/11439/blobhand branch July 24, 2023 19:34
JunielKatarn added a commit to jurocha-ms/react-native-windows that referenced this pull request Jul 24, 2023
…11926)

* Update packages.lock

* Remove HttpModule.h from OInstance.cpp

* Remove runtime option Blob.EnableModule

* Call SetupHttpResource only once

* Attempt AddNetworkingHandler if HTTP module was not ready

* Change files
JunielKatarn added a commit to jurocha-ms/react-native-windows that referenced this pull request Jul 24, 2023
…11926)

* Update packages.lock

* Remove HttpModule.h from OInstance.cpp

* Remove runtime option Blob.EnableModule

* Call SetupHttpResource only once

* Attempt AddNetworkingHandler if HTTP module was not ready

* Change files
JunielKatarn added a commit that referenced this pull request Jul 24, 2023
) (#11931)

* Attempt AddNetworkingHandler if HTTP module was not ready (#11926)

* Update packages.lock

* Remove HttpModule.h from OInstance.cpp

* Remove runtime option Blob.EnableModule

* Call SetupHttpResource only once

* Attempt AddNetworkingHandler if HTTP module was not ready

* Change files

* Remove change files

* Change files
JunielKatarn added a commit that referenced this pull request Jul 24, 2023
) (#11932)

* Attempt AddNetworkingHandler if HTTP module was not ready (#11926)

* Update packages.lock

* Remove HttpModule.h from OInstance.cpp

* Remove runtime option Blob.EnableModule

* Call SetupHttpResource only once

* Attempt AddNetworkingHandler if HTTP module was not ready

* Change files

* Change files
JunielKatarn added a commit to jurocha-ms/react-native-windows that referenced this pull request Aug 29, 2023
…11926)

* Update packages.lock

* Remove HttpModule.h from OInstance.cpp

* Remove runtime option Blob.EnableModule

* Call SetupHttpResource only once

* Attempt AddNetworkingHandler if HTTP module was not ready

* Change files
JunielKatarn added a commit to jurocha-ms/react-native-windows that referenced this pull request Aug 29, 2023
…11926)

* Update packages.lock

* Remove HttpModule.h from OInstance.cpp

* Remove runtime option Blob.EnableModule

* Call SetupHttpResource only once

* Attempt AddNetworkingHandler if HTTP module was not ready

* Change files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting Invalid response for BLOB at application startup
3 participants