You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Host exposed a function which returns "Promise". On calling that function from iframe url code, we get following error "Response object could not be cloned." If the Host function returns objects/array/string it works fine.
What is the workaround.
The text was updated successfully, but these errors were encountered:
Functions returning promises are supported, and that's probably not where the issue is.
What type of parameters does the function take? And what is the type resolved by the Promise?
The function takes string and and object as input The promise returns fetch "Response" object. Basically we are invoking overridden version of JavaScript fetch and the same is retuned from function.
Reference:
function f(url, fetchOpt) {
return customFetch(url, fetchOpt)
}
Describe the bug
Host exposed a function which returns "Promise". On calling that function from iframe url code, we get following error "Response object could not be cloned." If the Host function returns objects/array/string it works fine.
What is the workaround.
The text was updated successfully, but these errors were encountered: