You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Workflow.fix({ updater }) runs through all the items in the Buffer. Could the procedure be optimized? There is a suggestion to convert updater into predicate function or provide breaking callback:
// predicatethis.datasource.adapter.fix({updater: ({ data }: {data: MyItem})=>{if(this.needToUpdate(data)){this.updateItem(data);returntrue;}}});// callbackthis.datasource.adapter.fix({updater: ({ data }: {data: MyItem},callback: Function)=>{if(this.needToUpdate(data)){this.updateItem(data);callback();}}});
Currently
Workflow.fix({ updater })
runs through all the items in the Buffer. Could the procedure be optimized? There is a suggestion to convertupdater
into predicate function or provide breaking callback:Source: issue 121
The text was updated successfully, but these errors were encountered: