hello-worlds icon indicating copy to clipboard operation
hello-worlds copied to clipboard

Make webworkers optional

Open kenjinp opened this issue 1 year ago • 0 comments

currently web workers are required, this is not ideal because

  • web workers require special bundling
  • they're usually not beginner friendly
  • they're not always necessary
  • it's difficult to share codesandboxes because of same domain rules, which breaks previews

So make the worker prop optional and default to a shared implementation that happens on the main thread

kenjinp avatar Oct 26 '22 15:10 kenjinp