Skip to content

[BUG] Web worker #10

@jekiquin-bb

Description

@jekiquin-bb

Web worker

Web worker implementation is a little bit shaky. It is currently working now using custom hooks but having issues implementing more the one web worker.

  • Worker not defined when implementing more than one worker
  • Worker not define when invoking worker on another component

Possible solutions:

  • Adding a worker-loader on nextjs config file. Follow this
  • Making sure of the context where the worker was called or invoked. Worker context is only available where it is called (new Worker(...)). Using new URL(..., import.meta.url) works for worker file location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions