Skip to content

Commit

Permalink
fix: subscription procedure should use onData, not onNext
Browse files Browse the repository at this point in the history
  • Loading branch information
david-bell-brown committed Dec 26, 2024
1 parent fbc5f87 commit 9694306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createTRPCJotai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const atomWithSubscription = <
error: (err: unknown) => void;
}) => {
const callbacks = {
onNext: arg.next.bind(arg),
onData: arg.next.bind(arg),
onError: arg.error.bind(arg),
};
const unsubscribable = procedure.subscribe(input, {
Expand Down

0 comments on commit 9694306

Please sign in to comment.