diff --git a/src/pure.ts b/src/pure.ts index 1ed38a3..ac3bca3 100644 --- a/src/pure.ts +++ b/src/pure.ts @@ -113,7 +113,7 @@ async function render( } function cleanup() { - return Promise.all([...mountedInstances].map(cleanupAtInstance)) + return Promise.all(Array.from(mountedInstances).map(cleanupAtInstance)) } // maybe one day we'll expose this (perhaps even as a utility returned by render).