refetch rows when row created
This commit is contained in:
parent
0f8b3c52be
commit
0399e15ef0
|
@ -1,13 +1,13 @@
|
||||||
import { writable, get } from "svelte/store"
|
import { writable, get } from "svelte/store"
|
||||||
import { views } from "./"
|
import { tables } from "./"
|
||||||
|
|
||||||
export function createRowsStore() {
|
export function createRowsStore() {
|
||||||
const { subscribe } = writable([])
|
const { subscribe } = writable([])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
subscribe,
|
subscribe,
|
||||||
save: () => views.select(get(views).selected),
|
save: () => tables.select(get(tables).selected),
|
||||||
delete: () => views.select(get(views).selected),
|
delete: () => tables.select(get(tables).selected),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue