threads.js icon indicating copy to clipboard operation
threads.js copied to clipboard

DataCloneError

Open mxvsh opened this issue 3 years ago • 1 comments

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

DataCloneError: observer => observable.subscribe(observer) could not be cloned.

mxvsh avatar Aug 04 '22 02:08 mxvsh

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);
});

andywer avatar Aug 09 '22 17:08 andywer