UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

11 lines (10 loc) 258 B
export declare function useQueue<T>({ initialValues, limit }: { initialValues?: T[]; limit: number; }): { state: T[]; queue: T[]; add: (...items: T[]) => void; update: (fn: (state: T[]) => T[]) => void; cleanQueue: () => void; };