Skip to content

Commit

Permalink
fix: emit change on init
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaringe committed Jan 29, 2020
1 parent eb62082 commit fe05ddf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Expand Up @@ -79,6 +79,7 @@ export function renderNodes (opts: {
nodes.map(node => node.point),
transformLine
)
onStateChange(nodes)
}

export type OnStateChange = (nodes: MetaNode[]) => void
Expand Down

0 comments on commit fe05ddf

Please sign in to comment.