I use immer to store an object in which one of the properties is a typed array that actually contains the data of interest.
const annotation = { id: string, c