Skip to content

Commit

Permalink
docs(readme): better lib description, server error log config link
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan authored Apr 21, 2023
1 parent 09d4ed9 commit 19e374d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [next-safe-mutation](https://github.com/TheEdoRan/next-safe-mutation)

> `next-safe-mutation` is a library that uses the latest and greatest Next.js, React and TypeScript features to generate typesafe mutations in Server and Client Components.
> `next-safe-mutation` is a library that takes full advantage of the latest and greatest Next.js, React and TypeScript features to let you define typesafe mutations on the server and call them from Client Components.
### Note: server/client mutations are implemented but undocumented at this time in Next.js. They are available since `13.3.0` release.

Expand Down Expand Up @@ -151,7 +151,7 @@ Here's an explanation:
}
```

- `serverError`: if an unexpected error occurs in the server mutation body, it will be caught, and the client will only get back a `serverError` response. By default, the server error will be logged via `console.error`, but this is configurable.
- `serverError`: if an unexpected error occurs in the server mutation body, it will be caught, and the client will only get back a `serverError` response. By default, the server error will be logged via `console.error`, but [this is configurable](https://github.com/TheEdoRan/next-safe-mutation#createsafemutationclient-options).

## 2. The hook way

Expand Down

0 comments on commit 19e374d

Please sign in to comment.