You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But to make function totally pure you should use full clone instead of just shallow clone.
Because current behavior allow of update for example subproperties of token, i.e attributes, properties of object values etc.
More context: the flattenTokens utility and the convertTokenData utility, and probably others, need to make sure to created deep clones of the input if the input is of a data type where you might accidentally be mutating the input.
The text was updated successfully, but these errors were encountered:
But to make function totally pure you should use full clone instead of just shallow clone.
Because current behavior allow of update for example subproperties of token, i.e attributes, properties of object values etc.
Originally posted by @Delagen in #1397 (comment)
More context: the flattenTokens utility and the convertTokenData utility, and probably others, need to make sure to created deep clones of the input if the input is of a data type where you might accidentally be mutating the input.
The text was updated successfully, but these errors were encountered: