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

[BUG] Web worker #10

Open
jekiquin-bb opened this issue Jan 12, 2023 · 0 comments
Open

[BUG] Web worker #10

jekiquin-bb opened this issue Jan 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jekiquin-bb
Copy link
Contributor

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.
@jekiquin-bb jekiquin-bb added the bug Something isn't working label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant