Install
You have to installjotai-trpc, @trpc/client and @trpc/server to use the extension.
Usage
atomWithQuery
...atomWithQuery creates a new atom with “query”. It internally uses Vanilla Client’s ...query procedure.
atomWithMutation
...atomWithMutation creates a new atom with “mutate”. It internally uses Vanilla Client’s ...mutate procedure.
atomWithSubscription
...atomWithSubscription creates a new atom with “subscribe”. It internally uses Vanilla Client’s ...subscribe procedure.