Skip to content

Commit 4a9a396

Browse files
committed
docs: fix pwasa
1 parent f09021e commit 4a9a396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/web-example/implement-client-and-server.ko.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const pwasa = createPrimitiveWrpAtomSetAtom();
7878

7979
const Client = () => {
8080
const { iframeRef } = useIframeWrpAtomSetUpdateEffect(pwasa);
81-
const clientImpl = useClientImpl();
81+
const clientImpl = useClientImpl(pwasa);
8282
const serviceClient = useMemo(() => {
8383
if (!clientImpl) return;
8484
return createServiceClient(clientImpl);
@@ -103,7 +103,7 @@ const pwasa = createPrimitiveWrpAtomSetAtom();
103103

104104
const Server = () => {
105105
const { iframeRef } = useIframeWrpAtomSetUpdateEffect(pwasa);
106-
const channel = useChannel();
106+
const channel = useChannel(pwasa);
107107
useWrpServer(channel, {}, [
108108
[
109109
methodDescriptors.getTextValue,

0 commit comments

Comments
 (0)