New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
waitUntilExit() not resolved with syntax errors #542
Labels
Comments
Does error boundary catch the syntax error? |
I've encountered same issue. Can be reproduced this way: import React from 'react';
import { render } from 'ink';
const App = () => {
throw new Error('');
return null;
}
(async () => {
try {
const { waitUntilExit } = render(<App />);
await waitUntilExit()
console.log('done'); // not reached
} catch (e) {
console.log('catch'); // not reached
}
})(); latest |
It happens because at the moment when error is thrown Maybe it makes sense to always init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: