Skip to content

Commit

Permalink
feat(index.page.tsx): add initialization of ZkappWorkerClient to impr…
Browse files Browse the repository at this point in the history
…ove functionality and state management in Home component
  • Loading branch information
ymekuria committed Sep 19, 2024
1 parent 96842ae commit 4ce9dd5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export default function Home() {
});
}

const zkappWorkerClient = new ZkappWorkerClient();
setState(prev => ({ ...prev, zkappWorkerClient }));

(async () => {
if (!state.hasBeenSetup) {
setDisplayText('Loading web worker...');
Expand Down

0 comments on commit 4ce9dd5

Please sign in to comment.