Display a message when there are no results

This commit is contained in:
Timothy Armes
2024-09-27 10:55:02 +02:00
parent 93e3e1242a
commit f8cd2612b5
8 changed files with 92 additions and 11 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
import { createSafeActionClient } from "next-safe-action";
export const action = createSafeActionClient();
export const action = createSafeActionClient({
handleReturnedServerError(error) {
return error.message;
},
});