> For the complete documentation index, see [llms.txt](https://angularjs-store.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://angularjs-store.gitbook.io/docs/v3.0.0/tutorials/stop-from-receiving-notifications.md).

# Stop from receiving notifications

Whenever we add a hook in the store it always return a `HookLink` instance that represents the link between the hook and the store. We can use it to stop our hook from getting notified on any dispatched action.

In this example we use the `destroy` method to manually destroy the hook when it reach its 3rd invocation.

{% hint style="danger" %}
`hookLink` is only available inside reducers after hook initial phase.
{% endhint %}

{% code title="controller-d.js" %}

```javascript
angular
  .module('App', [])
  .controller('ControllerD', function ControllerD($scope, CounterStore) {
    const hookLink = CounterStore.hook('INCREMENT_COUNT', (state, calls) => {
      $scope.count = state.count;

      if (calls === 3) {
        hookLink.destroy();
      }
    });
  });
```

{% endcode %}

Another method of `HookLink` is `destroyOn`. This method is used for auto destroying of hook. It basically bind the hook to AngularJS scope so when the scope destroyed also hook is get destroyed.

{% code title="controller-d.js" %}

```javascript
angular
  .module('App', [])
  .controller('ControllerD', function ControllerD($scope, CounterStore) {
    CounterStore.hook('INCREMENT_COUNT', (state) => {
      $scope.count = state.count;
    }).destroyOn($scope);
  });
```

{% endcode %}
