You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does anyone have an example how how to setup a worker with the agent when using a functional component. The docs say you need to have a bridge connected to the worker.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
Does anyone have an example how how to setup a worker with the agent when using a functional component. The docs say you need to have a bridge connected to the worker.
basically this example except using a functional component instead of the struct component for App
https://github.com/yewstack/yew/tree/yew-v0.20.0/examples/web_worker_fib
I guess I can just change my main component to a struct component - but there was talk about removing support for struct components in the future.
Beta Was this translation helpful? Give feedback.
All reactions