Flow and JS file

Hello @George ,
Working with flow is really good. But why is it used in the script block? It may be more convenient to use js in the file and add it in the main page. In this way, I think we may have the chance to use the streams we created on other pages. Is it possible to make an improvement in this way?
I also think it will be used in node js in the future.

I agree. I did find it odd that I’d build a few long flow scripts and it was added In the html body vs a JS file.

I’m new to JS though so don’t know if one way is better than the other, I just prefer to keep my scripts in a file and load them that way.

1 Like

I like the code being generated within the page - to make it easy to see what’s actually being generated and perhaps to make manual edits - but it would be good to have an easy way to export the code to an external JS file after that, either to a new file or to append it to an existing file.

(Similarly, I preferred it when the Design panel generated css in the <head> section in the current file - which made it easier to view and edit, before transferring to an external file.)