Interface ReactiveSetConfig<TValue>

interface ReactiveSetConfig<TValue> {
    onDeleted?: ((value) => void);
}

Type Parameters

  • TValue

Properties

Properties

onDeleted?: ((value) => void)

A callback function that will be called when an entry is deleted.

Entries are considered deleted from the set when:

  • set.delete() or set.batchDelete() entries.
  • set.add(), set.batchAdd() or set.replace() causing old entries being deleted.
  • set.clear() is called.
  • set.dispose() is called.

Type declaration

    • (value): void
    • Parameters

      Returns void