-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
permanentStale bot ignoresStale bot ignores
Description
Hi, I'm running into an issue where Vue updates dom a bit late than the flow expects. Basically the updates happen after run callback returns. It would be great if we had run's signature as something like (items: Item[], done: () => void) => {} where we call done() after dom update.
new Workflow({
consumer,
element: this.$el as HTMLElement,
datasource: this.dataSource as any,
run: (items: Item[]) => {
if (!items.length && !this.dataItems.length) {
return
}
this.dataItems = items /// vue will detect update and patch the dom after some time
this.$nextTick(() => {
console.log('dom patched. now vscroll can continue')
/// done() // something like this would do the job
})
},
})What do you think?
Metadata
Metadata
Assignees
Labels
permanentStale bot ignoresStale bot ignores