You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
I think throwing is better here as it’s simplifying the API (this package has no dependency on zod, you can write your own parser) but we need to return an HTTP 400 if the values don’t match
https://github.com/vercel-labs/next-swr-endpoints/blob/9c93696201d50f1034544115d47c0ea0291f945b/packages/next-swr-endpoints/src/swr-server-endpoint-loader.ts#L49
.safeParse()
will return a result object instead of throwing an error.The text was updated successfully, but these errors were encountered: