getStores
Returns the raw store instances. This is an escape hatch - anything you can achieve through getState, exec, or on should go through those instead.
Usage
getStores(): { data: KanbanStore };
| Field | Type | Description |
|---|---|---|
data | KanbanStore | The internal kanban store driving the board |
Example
<script>
import { Kanban } from "@svar-uisvelte-kanban";
let api;
function inspectStore() {
const { data } = api.getStores();
console.log(data);
}
</script>
<Kanban {cards} {columns} bind:this={api} />
<button onclick={inspectStore}>Inspect store</button>
Related
- getState — non-reactive state snapshot (preferred)
- getReactiveState — reactive stores (preferred)