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
breaking(Transition): Only call findDOMNode if necessary (#2)
Cherry-picking reactjs#468
## Breaking
Callbacks that use argument spread or access `arguments` will not have acces to the DOM node. The DOM node is only passed if Function.prototype.length is greater than 0.
```
// no node passed
const noNodeCallback = () => {};
// node passed
const withNodeCallback = node => {};
```
The first callback enables strict mode compatible usage of `Transition`. If you expect the node in callbacks a call to `findDOMNode` is required which issues a warning in `React.StrictMode`.
0 commit comments