Skip to content

Commit

Permalink
refactor(04-zkapp-ui-with-react.mdx): update worker reference variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ymekuria committed Oct 1, 2024
1 parent 23c575e commit 5e233e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/zkapps/tutorials/04-zkapp-ui-with-react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Comlink.expose(api);

The web worker client code resides in the `04-zkapp-browser-ui/ui/app/zkappWorkerClient.ts` file. Here you create a client in the main thread that interacts with the web worker.

- `Worker` is a reference to the Worker instance and `remoteApi` is a reference to a proxy object that provides typesafe access to the worker's API methods.
- `worker` is a reference to the web worker instance and `remoteApi` is a reference to a proxy object that provides typesafe access to the worker's API methods.

```ts
export default class ZkappWorkerClient {
Expand Down

0 comments on commit 5e233e9

Please sign in to comment.