atus/"><code>usePersisterStatus</code></a> hook).</p><p>Unlike the <a href="/api/persister-file/interfaces/persister/filepersister/methods/listener/addstatuslistener/"><code>addStatusListener</code></a> method, which returns a listener <a href="/api/common/type-aliases/identity/id/"><code>Id</code></a> and requires you to remove it manually, the <code>usePersisterStatusListener</code> hook manages this lifecycle for you: when the listener changes (per its <code>listenerDeps</code> dependencies) or the compo