Keeping Generators in Array for variable amounts of tables in layout

If I understand correctly, you want to create an array of tables via [...].map(() => Inputs.table(...)), then apply Generators.input on each of them to create an array of generators, and then map the array of generators into value?

From my own trying, it doesn’t work if you read the generators from the array directly. I don’t know exactly why but it probably has something to do with generator needing to be read into a block to have its desired effect, instead of becoming a AsyncGenerator when you directly use it from the array of generators.

What I find works better in this case is using Inputs.form on the array of tables.

1 Like