We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ef64ea commit 3865525Copy full SHA for 3865525
src/pure.js
@@ -74,7 +74,11 @@ function render(
74
el.forEach(e => console.log(prettyDOM(e, maxLength, options)))
75
: // eslint-disable-next-line no-console,
76
console.log(prettyDOM(el, maxLength, options)),
77
- unmount: () => ReactDOM.unmountComponentAtNode(container),
+ unmount: () => {
78
+ act(() => {
79
+ ReactDOM.unmountComponentAtNode(container)
80
+ })
81
+ },
82
rerender: rerenderUi => {
83
render(wrapUiIfNeeded(rerenderUi), {container, baseElement})
84
// Intentionally do not return anything to avoid unnecessarily complicating the API.
0 commit comments