Retool
Recursion
At least, retool would not report any error while using recursion.
But I just write the functions in recursion way, for now there is no recursion while running. I am not sure if recursion really took place, retool would perform correctly.
Limitation of retool variables
In retool, there are globals variables that can be used to store data. But the data is serialized into JSON strings while stored (by setValue function), and rebuilt into objects while being read (by .value feature).
This is a big problem while the objects I want to save were functions. I tried several ways and finally give up.
There is another problem: the setValue function is asynchronous. If you call setValue and use .value immediately, it will be the last value.
JS Query Parameters
It seems like that retool can use a javascript function that has some input and return values, but a little different from the original JS.
For now, I just use global variables.
Related Platforms
(Github Issues) / (Notion) / (Blog)
Advertisement
(A website to optimize your resume and to boost your career: Nonpareil.me)
Retool
递归调用
在写这种调用方法时,retool是正常接受了的。
不过我现在虽然有递归调用的写法,但是实际运行时并没有用到递归。不知道真的运行到递归的部分时,会不会报错。
Retool变量的限制
变量可以用于存储数据,作为函数的参数传递也可以。不过它实际上是把变量转化成JSON字符串存储起来,要使用的时候通过.value再重建成对象。
这里有一个问题就是:函数是不能序列化的。所以想预存储一系列动态生成的函数是不行的,我试了几种方法,最后放弃了。
另外还有一点:setValue是异步的。所以如果在setValue之后立刻通过.value获取,得到的还是之前的值。
JS Query参数传递
网上说可以传递参数,也可以接收返回值,不过我现在还是在用全局变量。之后再试。
相关平台
(Github Issues) / (Notion) / (Blog)