mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
19 lines
437 B
TypeScript
19 lines
437 B
TypeScript
import { useWorkflowStore } from './store'
|
|
|
|
export function initializeStateLogger() {
|
|
useWorkflowStore.subscribe((state) => {
|
|
console.log('Workflow State Updated:', {
|
|
current: {
|
|
blocks: state.blocks,
|
|
edges: state.edges,
|
|
loops: state.loops,
|
|
},
|
|
history: {
|
|
past: state.history.past,
|
|
present: state.history.present,
|
|
future: state.history.future,
|
|
},
|
|
})
|
|
})
|
|
}
|