chungweileong94 / server-act

A simple React server action builder
MIT License
20 stars 1 forks source link

Prevent duplicate chaining methods #27

Closed chungweileong94 closed 1 week ago

chungweileong94 commented 1 week ago

Currently, you are able to have duplicate chaining methods like

serverAct
    .middleware(...)
    .middleware(...)
    .input(...)
    .input(...)
    .action(....)

However, the later will override the precedent, which makes people think that we are supporting chaining middlewares #26, yet we are not. So before we have an actual implementation of chaining middleware, we will prevent people from chaining duplicate methods for now.

stackblitz[bot] commented 1 week ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

changeset-bot[bot] commented 1 week ago

🦋 Changeset detected

Latest commit: 2ab472cda8d404406a7ddeec4645e012c81abcd9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------- | ----- | | server-act | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR