e>useValueListener</code> hook manages this lifecycle for you: when the listener changes (per its <code>listenerDeps</code> dependencies) or the component unmounts, the listener on the underlying <a href="/api/the-essentials/creating-stores/store/"><code>Store</code></a> will be deleted.</p><section class="s2"><h2>Example</h2><p>This example uses the <code>useValueListener</code> hook to create a listener that is scoped to a single component. When the component is unmounted, the listener is removed from the