Thanks to @williardx in #105 we now avoid dispatching a tracking event when your decorated class member tracking call returns a falsy value:
@track({ module: 'button' })
class Thing extends Component {
@track(() => {
// some logic that eventually returns:
return false; // won't dispatch
})
handleClick = () => { ... }
render() {
return <button onClick={this.handleClick}>Click me</button>
}
}