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
[tests] <StrictMode /> nested in tree is broken (facebook#31825)
Adds a test that shows using <StrictMode /> anywhere outside of the root
node will not fire strict effects.
This works:
```js
root.render(
<StrictMode>
<App>
<Children />
</App>
</StrictMode>
);
```
This does not fire strict effects on mount:
```js
root.render(
<App>
<StrictMode>
<Children />
</StrictMode>
</App>
);
```
DiffTrain build for [e1d843f](facebook@e1d843f)
function dispatchReducerAction(fiber, queue, action) {
4602
+
var args = arguments;
4603
+
"function" === typeof args[3] &&
4608
4604
error$jscomp$0(
4609
4605
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
function dispatchReducerAction(fiber, queue, action) {
4494
+
var args = arguments;
4495
+
"function" === typeof args[3] &&
4500
4496
error$jscomp$0(
4501
4497
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
0 commit comments