ampproject / ampproject/worker-dom

passing parameters

Open
#839 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

how do you pass parameters into the worker-dom? globalThis is available inside the worker for onMessage but from the main thread, we can't seem to send anything into it
Looked into the demo/ + issues, can't find any example

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the demo/ examples and the existing onMessage and globalThis usage described in the issue. Document or add an example showing how parameters are sent from the main thread into the worker, with completion marked by a clear working example.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.