datavis-tech / topologica

Minimal library for reactive dataflow programming. Based on topological sort.
MIT License
50 stars 1 forks source link

Restore whitelisted arg #31

Closed curran closed 6 years ago

curran commented 6 years ago

Not sure if we need this. It impacts performance and bundle size negatively, but also improves usability of the library by pre-empting bugs where a property is unpacked, but not defined as a dependency.

Imagine a scenario where you want to add a new dependency to a function, and you add it to the destructuring assignment, but forget to add it to the list of dependencies. Without this change, the property would be available on the argument, but it would not be tracked as a dependency.

Before:

After: