We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f09021e commit 4a9a396Copy full SHA for 4a9a396
docs/web-example/implement-client-and-server.ko.md
@@ -78,7 +78,7 @@ const pwasa = createPrimitiveWrpAtomSetAtom();
78
79
const Client = () => {
80
const { iframeRef } = useIframeWrpAtomSetUpdateEffect(pwasa);
81
- const clientImpl = useClientImpl();
+ const clientImpl = useClientImpl(pwasa);
82
const serviceClient = useMemo(() => {
83
if (!clientImpl) return;
84
return createServiceClient(clientImpl);
@@ -103,7 +103,7 @@ const pwasa = createPrimitiveWrpAtomSetAtom();
103
104
const Server = () => {
105
106
- const channel = useChannel();
+ const channel = useChannel(pwasa);
107
useWrpServer(channel, {}, [
108
[
109
methodDescriptors.getTextValue,
0 commit comments