@knitui/hooks
useQueue
A bounded queue that keeps limit items visible and holds the overflow — port of Mantine's useQueue. Pure React state, so identical on web and native.
WebiOSAndroid
Import
import { useQueue } from "@knitui/hooks";Signature
export function useQueue<T>({ initialValues = [], limit }: UseQueueOptions<T>): UseQueueReturn<T>Exported types: UseQueueOptions, UseQueueReturn