Skip to content

useWorker error when destructuring function arguments #97

@juansalvatore

Description

@juansalvatore

[Required] Describe the bug
When passing a function to useWorker that has argument destructuring I get the error shown on the screenshot.

[Optional] To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/useworker-argument-destructuring-guznf
  2. Click on "Run test"
  3. See error

[Required] Expected behavior
Destructuring function arguments break the worker.

[Optional] Screenshots
This is the error I get in my project:
image

Metadata

Metadata

Assignees

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions