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

worker.mixin.RemoteMethodAccess: accessing new main threads too early #5577

Open
tobiu opened this issue Jul 15, 2024 · 0 comments
Open

worker.mixin.RemoteMethodAccess: accessing new main threads too early #5577

tobiu opened this issue Jul 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tobiu
Copy link
Collaborator

tobiu commented Jul 15, 2024

It is an edge-case bug which does happen inside our colors app websocket demo:
Screenshot 2024-07-15 at 19 07 46

the app worker tries to send messages to the new main thread => loading theme files, before these remotes have been registered.

2 options:

  1. debug the "app is ready" => connect event to ensure it fires once all main thread addons are ready.
  2. if a namespace does not exist yet, try again 100(?)ms later
@tobiu tobiu added the bug Something isn't working label Jul 15, 2024
@tobiu tobiu self-assigned this Jul 15, 2024
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
Development

No branches or pull requests

1 participant