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
createTransformer takes a transformer argument, which is expected to be a function that takes precisely one argument. MobX tries to test this requirement by checking that transformer.length === 1.
The problem though is that this will break in the case of functions that have an argument with a default value, because those will have length === 0 (at least in Node 5 and in latest Google Chrome).
For example, this breaks (and unnecessarily so as far as I can see):
createTransformer
takes atransformer
argument, which is expected to be a function that takes precisely one argument. MobX tries to test this requirement by checking thattransformer.length === 1
.The problem though is that this will break in the case of functions that have an argument with a default value, because those will have
length === 0
(at least in Node 5 and in latest Google Chrome).For example, this breaks (and unnecessarily so as far as I can see):
The text was updated successfully, but these errors were encountered: