 its <code>listenerDeps</code> dependencies) or the component unmounts, the listener on the underlying <a href="/api/indexes/interfaces/indexes/indexes/"><code>Indexes</code></a> object will be deleted.</p><section class="s2"><h2>Example</h2><p>This example uses the <code>useSliceIdsListener</code> hook to create a listener that is scoped to a single component. When the component is unmounted, the listener is removed from the <a href="/api/indexes/interfaces/indexes/indexes/"><code>Indexes</code></a> object