Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Introducing zact.input(...).mutation(...)?  #20

@Quatton

Description

@Quatton

Hello. I hope we are familiar with tRPC's router definition pattern where we use method chaining like this. I personally love the idea and strongly believe that it is more intuitive than zact(...)((input) => {})

As this is a breaking change that will introduce new abstraction, I would like to discuss it first before starting work on it.

Firstly, other than the fact that it looks more intuitive, would this solution help us achieve anything else? Secondly, would this cause any problems that we should be aware of?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions