Represents a custom hook to display a snackbar with request feedback.

  • Parameters

    • options: IParams

      The options for the snackbar.

      Represents the parameters for a certain functionality.

      IParams

      • Optionaldelay?: number
      • error: null | string
      • loading: null | boolean
      • Optionalmessage?: string
      • OptionalnoSnackOnOk?: boolean
      • OptionalonClose?: (isOk: boolean) => void

    Returns {
        beginWatch: () => void;
        render: () => Element;
        resetWatcher: () => void;
        stopWatch: () => void;
    }

    • The snackbar hook object.