Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
baracudda committed May 16, 2024
2 parents e868d11 + 6db07f5 commit 6b0a883
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ window.showFlowEditor = (ele, config) => {
if (config.httpTimeout) {
setHTTPTimeout(config.httpTimeout);
}
//<*((==<
//<*((==< pass in extra schemes
if (Array.isArray(config.schemes)) {
concatSCHEMES(config.schemes);
}

return ReactDOM.render(<FlowEditor config={config} />, ele);
//<*((==< return the instance reference
const theFlowEditor = userRef(null);
ReactDOM.render(<FlowEditor config={config} ref={{theFlowEditor}} />, ele);
return theFlowEditor;
};

// If you want your app to work offline and load faster, you can change
Expand Down

0 comments on commit 6b0a883

Please sign in to comment.