ore/"><code>Store</code></a> will be deleted.</p><section class="s2"><h2>Example</h2><p>This example uses the <code>useWillFinishTransactionListener</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/the-essentials/creating-stores/store/"><code>Store</code></a>.</p><pre><code><span class="keyword">import</span> React <span class="keyword">from</span> <span class="string">'react'</span><span class="punctuation