Skip to content

Conversation

@braposo
Copy link
Contributor

@braposo braposo commented Jan 23, 2017

@stutrek sorry about this, but I introduced a bug with the autoStart feature. It was causing errors when autoStart was set to false and the component unmounted, because it tried to destroy a watcher that didn’t exist.

So by always using start|stop|lock|unlockWatcher functions instead of accessing this.watcher directly we protect any unwanted access and avoid any of these errors.

Sorry again, I should have tested it more extensively!

By always using start|stop|lock|unlockWatcher functions instead of accessing `this.watcher` directly we protect any unwanted access. It was causing errors when `autoStart` was set to false because it tried to destroy a watcher that didn’t exist.
@braposo braposo changed the title Fix destroy Fix destroy error on unmount Jan 23, 2017
@stutrek
Copy link
Owner

stutrek commented Jan 24, 2017

Add yourself as a contributor in package.json

@braposo
Copy link
Contributor Author

braposo commented Jan 24, 2017

Oh thanks @stutrek, you're very kind but it wasn't necessary at all. I'm going to use the contributor package so it's automatically generated and no one is forgotten, ok? 😄

@stutrek stutrek merged commit aad859b into stutrek:master Jan 24, 2017
@stutrek
Copy link
Owner

stutrek commented Jan 24, 2017

I also wanted a buy a little time in case you found another bug 😉

@braposo braposo deleted the fix-destroy branch January 25, 2017 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants