Skip to content
View shaanardev's full-sized avatar
  • Australia
  • 07:08 (UTC +11:00)

Block or report shaanardev

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Type Safe Server Action Hook Type Safe Server Action Hook
    1
    import { useState, useCallback } from "react";
    2
    
                  
    3
    import { ActionState, FormFieldErrors } from "@/lib/create-safe-action";
    4
    
                  
    5
    type Action<TInput, TOutput> = (data: TInput) => Promise<ActionState<TInput, TOutput>>;
  2. Server Action Wrapper with Validation Server Action Wrapper with Validation
    1
    import { z } from "zod";
    2
    
                  
    3
    export type FormFieldErrors<T> = {
    4
        [Key in keyof T]?: string[];
    5
    }