Skip to content

Feature Request: safeClient #703

Open
@xiaoyu2er

Description

@xiaoyu2er

from this doc: https://orpc.unnoq.com/docs/client/error-handling
we can do

const { error, data, isDefined } = await safe(client.doSomething({ id: '123' }))

Feature request: create a safe orpc client so that we don't have to wrap the function every time.

like

const { error, data, isDefined } = await safeClient.doSomething({ id: '123' })

#700

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions