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
Describe your issue
Tests that render the Dialog are failing with an error. It only fails when open is true.
Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
test('should render the children when open is true', () => {
render(
<MyDialog open trigger={<button type="button">trigger</button>} onClose={jest.fn()}>
<div>hello world</div>
</MyDialog>,
);
expect(screen.getByText('hello world')).toBeInTheDocument();
});
The text was updated successfully, but these errors were encountered:
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
What browser are you using?
Browser N/A
Reproduction URL
N/A
Describe your issue
Tests that render the
Dialog
are failing with an error. It only fails whenopen
is true.The text was updated successfully, but these errors were encountered: