Read the current cell from the closest CellIdContext, the id is provided
by <Paper /> around renderElement / renderLink. Use this inside a
render callback (or a component mounted from one) to access the full cell
record.
Throws when used outside of a Paper render context, or when the id no longer resolves to a cell in the store (e.g. deleted mid-render).
input cell record shape (defaults to CellRecord); reads resolve to its Computed form
the current resolved cell record
Read a selected slice from the current cell (context-scoped). Re-renders
only when isEqual(prev, next) returns false.
Throws if no cell resolves, never returns undefined.
input cell record shape (defaults to CellRecord); reads resolve to its Computed form
selector return type (defaults to Cell)
selected value
Subscribe to a specific cell by id. Works anywhere, does not require
CellIdContext. Throws when the id does not resolve to a cell.
input cell record shape (defaults to CellRecord); reads resolve to its Computed form
cell id to track
the resolved cell record
Subscribe to a specific cell by id and derive a value from it. Works
anywhere, does not require CellIdContext. Throws when the id does not
resolve to a cell.
input cell record shape (defaults to CellRecord); reads resolve to its Computed form
selector return type (defaults to Cell)
cell id to track
derive a value from the resolved cell record
OptionalisEqual: (a: Selected, b: Selected) => booleanequality test used to short-circuit re-renders (defaults to a shallow, array-aware comparison that falls back to Object.is for scalar results)
selected value
useCell()