Skip to content

Commit

Permalink
fix: solve runtime error causing exit conditions
Browse files Browse the repository at this point in the history
Co-authored-by: jgoux <[email protected]>
  • Loading branch information
crutchcorn and jgoux committed Jun 1, 2022
1 parent 21e8179 commit a051308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit a051308

Please sign in to comment.