Open curran opened 5 years ago
The reason originally I did not go for function arguments detection is that it fails under minification.
There may be other ways to do detection of arguments, like the way Vue.js and MobX does it, but this forces us to evaluate the reactive function before all inputs are ready, just to check what inputs are accessed (which would fail if there are conditionals in the function body). This approach would force users of the library to guard against null values for inputs, which is not ideal.
https://www.npmjs.com/package/es-arguments I use this package because it handle arrow functions and in my tests works great in any cases
Split out from #49. /cc @caracal7