While checking the useServerAction() source I saw that it does not use React.useTransition() to wrap the action execution in a startTransition.
In contrast next-safe-action's useAction implementation does so.
Is oRPC's implementation to omit startTransition a deliberate choice and if yes, what is the reasoning behind it?
BTW I saw that next-safe-action also provides additional hooks like useOptimisticAction and useStateAction(). Maybe these are also interesting to provide for oRPC to be attractive to next-safe-action users?
While checking the
useServerAction()source I saw that it does not useReact.useTransition()to wrap the action execution in astartTransition.In contrast next-safe-action's
useActionimplementation does so.Is oRPC's implementation to omit
startTransitiona deliberate choice and if yes, what is the reasoning behind it?BTW I saw that next-safe-action also provides additional hooks like
useOptimisticActionanduseStateAction(). Maybe these are also interesting to provide for oRPC to be attractive to next-safe-action users?