-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
If is use superjson
as transformer, this procedure:
open: publicProcedure.subscription(async () => {
return observable<{ open: boolean }>((emit) => {
const setFileopenVisible = (data: boolean) => {
console.log("setFileopenVisible", data);
emit.next({ open: data });
};
ee.on("setFileopenVisible", setFileopenVisible);
return () => {
ee.off("setFileopenVisible", setFileopenVisible);
};
})
}),
returns undefined when called here:
trpc.ui.openFileVisible.open.useSubscription(undefined, {
onData: (data) => {
console.log("data", data);
},
});
The data is properly returned, if I remove the transformer from the api and the client.
Using electron-trpc version 0.4.2.
Metadata
Metadata
Assignees
Labels
No labels