Create a safe action middleware to fetch data
I actually created this and we are using it in out company's codebase and I thought I could share it with you guys, you can tell me next-safe-action does this and I'll tell you this is for fetching without having to call your getUserId() crap, and instead pass it as a middleware and return only the data you need and none of that validation errors crap, cause you only care about the returned data in fetching
3 Replies