Spaces:
Runtime error
Runtime error
| import { derived, get, writable, type Readable, type Writable } from 'svelte/store'; | |
| export const pipelineValues: Writable<Record<string, any>> = writable({}); | |
| export const deboucedPipelineValues: Readable<Record<string, any>> = derived( | |
| pipelineValues, | |
| ($pipelineValues, set) => { | |
| const debounced = setTimeout(() => { | |
| set($pipelineValues); | |
| }, 100); | |
| return () => clearTimeout(debounced); | |
| } | |
| ); | |
| export const getPipelineValues = () => get(pipelineValues); | |