Function useCell

  • Returns a tuple of the current value of the cell and a publisher function (similar to useState). The component will be re-rendered when the cell value changes.

    Type Parameters

    • T

    Parameters

    Returns readonly [T, (value: T) => void]

    A tuple of the current value of the cell and a publisher function.

    If you need just a publisher, use usePublisher.