LocalStorageStore

constructor(keyPrefix: String = "telar.store.", clock: Clock = Clock.System)

Parameters

keyPrefix

what the key of an entry starts with. It must not be the start of the keyPrefix of a checkpointer or another store of the page, so that list finds only its own.

clock

gives StoreItem.updatedAt. Two writes of one store never get the same time, and a store starts after the last write it finds, so list keeps their order also with the clock of a browser, which counts milliseconds.