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

DataCloneError #441

Open
mxvsh opened this issue Aug 4, 2022 · 1 comment
Open

DataCloneError #441

mxvsh opened this issue Aug 4, 2022 · 1 comment
Labels

Comments

@mxvsh
Copy link

mxvsh commented Aug 4, 2022

I am getting the following error when I am trying to create an Observable function.

DataCloneError: observer => observable.subscribe(observer) could not be cloned.
@andywer
Copy link
Owner

andywer commented Aug 9, 2022

Hey @xencodes. Looks to me as if you wanted to do this in the worker

expose(function doStuff() {
  return new Observable(observer => observable.subscribe(observer));
});

but instead wrote this:

expose(function doStuff() {
  return observer => observable.subscribe(observer);
});

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

No branches or pull requests

2 participants