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
In v4 if trying to register a transform with the name which is already registered internally, the custom transform function will never be called. Instead the internal one will be called. In v3 it worked. Either because name/camel was not defined internally or because the library allowed overriding transforms, not sure. Here is example of the code. Transform group is defined at the config object.
This could be a documentation update (if any) or the code could be updated so that if the user registers a transformer with the internal name, then the library allows to override it. Maybe it's not even internal names. Maybe it just ignores registerTransform for the same name after it was registered once. I did not check that. For me I just renamed the transform and the code began to work.
The text was updated successfully, but these errors were encountered:
In
v4
if trying to register atransform
with the name which is already registered internally, the customtransform
function will never be called. Instead the internal one will be called. Inv3
it worked. Either becausename/camel
was not defined internally or because the library allowed overridingtransforms
, not sure. Here is example of the code. Transform group is defined at the config object.If renaming
name/camel
it starts working.This could be a documentation update (if any) or the code could be updated so that if the user registers a transformer with the internal name, then the library allows to override it. Maybe it's not even internal names. Maybe it just ignores
registerTransform
for the same name after it was registered once. I did not check that. For me I just renamed thetransform
and the code began to work.The text was updated successfully, but these errors were encountered: