API reference: @salmonui/data
RangeSourceinterface
import type { RangeSource } from '@salmonui/data';interface RangeSource<T> {
getSnapshot(): RangeSourceSnapshot<T>;
subscribe(listener: () => void): () => void;
request(range: Range): void;
invalidate(): void;
}
| Name | Signature | Description |
|---|---|---|
getSnapshot | getSnapshot(): RangeSourceSnapshot<T>; | |
subscribe | subscribe(listener: () => void): () => void; | |
request | request(range: Range): void; | Shows |
invalidate | invalidate(): void; | Drops the cache (for example after the data changed on the server). |