• Type Parameters

    • ElementType

    Parameters

    • context: ContextWithState
    • Optional capacity: number
    • Optional defaultData: ElementType[]

    Returns StateAtom<RingBuffer<ElementType>, {
        add: ((data, element) => boolean);
        clear: ((data) => boolean);
    }>

Generated using TypeDoc