appsmith
appsmith copied to clipboard
Store return type to enable js actions in best match
@hetunandu can you add more details to this issue?
If we can determine the return value of a JS function, we can use our best match to suggest JS functions on widget properties. For example if we know a JS function returns an array of objects, we can show it in the best match of table data
If we can determine the return value of a JS function, we can use our best match to suggest JS functions on widget properties. For example if we know a JS function returns an array of objects, we can show it in the best match of table data
There could be a possibility of a function returning different type of data according to condition?
Just to clarify do we want to show autocomplete best match suggestion according to the last ran data type of JS Function? @hetunandu
@Rishabh-Rathod, while this is possible, it is a rare case. Mostly the data type would be the same in most cases and that is all we need to predict the best match.
closing this in favour of #17684