---
lang: en
title: 'API docs: context.contextobserver'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.contextobserver.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [ContextObserver](./context.contextobserver.md)

## ContextObserver interface

Observers of context bind/unbind events

**Signature:**

```typescript
export interface ContextObserver 
```

## Properties

<table><thead><tr><th>

Property


</th><th>

Modifiers


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td markdown="1">

[filter?](./context.contextobserver.filter.md)


</td><td markdown="1">


</td><td markdown="1">

[BindingFilter](./context.bindingfilter.md)


</td><td markdown="1">

_(Optional)_ An optional filter function to match bindings. If not present, the listener will be notified of all binding events.


</td></tr>
<tr><td markdown="1">

[observe](./context.contextobserver.observe.md)


</td><td markdown="1">


</td><td markdown="1">

[ContextObserverFn](./context.contextobserverfn.md)


</td><td markdown="1">

Listen on `bind`<!-- -->, `unbind`<!-- -->, or other events


</td></tr>
</tbody></table>


