You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered same issue. Can be reproduced this way:
importReactfrom'react';import{render}from'ink';constApp=()=>{thrownewError('');returnnull;}(async()=>{try{const{ waitUntilExit }=render(<App/>);awaitwaitUntilExit()console.log('done');// not reached }catch(e){console.log('catch');// not reached }})();
It happens because at the moment when error is thrown waitUntilExit wasn't called. Accordingly, exitPromise wan't created and rejectExitPromise defaults to dummy function 😞
Maybe it makes sense to always init exitPromise in constructor?
The following hangs:
It's strange because waitUntilExit rejects as expected if the rendered component simply throws an error like:
The text was updated successfully, but these errors were encountered: