```coffeescript
module.exports =
  observeConfig: (keyPath, args...) ->
    @configSubscriptions ?= {}
    @configSubscriptions[keyPath] = config.observe(keyPath, args...)

  unobserveConfig: ->
    for keyPath, subscription of @configSubscriptions ? {}
      subscription.cancel()
```

Clear config subscriptions when unobserving
user
```coffeescript
module.exports =
  observeConfig: (keyPath, args...) ->
    @configSubscriptions ?= {}
    @configSubscriptions[keyPath] = config.observe(keyPath, args...)

  unobserveConfig: ->
    if @configSubscriptions?
      subscription.cancel() for keyPath, subscription of @configSubscriptions
      @configSubscriptions = null
```
assistant