I'm trying to build a form with Retool which will be embedded in a React Application. In my use case, I need to transform the data I pass in the prop data
, so I set a transformer script. The transformer script works as expected when testing it inside Retool, but when testing it within the React Application, something weird happens.
I wrote some console logs on the script. By doing this I could see 2 different bugs:
- The
data
variable, which should be the input, there is, the prop value, isundefined
- If I just ignore the
data
and return a fixed string, the success event handler ignores its value and proceeds with the raw value (even if thequery.data
is used, notquery.rawData
)
Obs: The success event handler works as expected when there is no transform, it just ignores the transformer script.