Skip to content

Commit

Permalink
[react-interactions] Rename Flare listeners prop to DEPRECATED_flareL…
Browse files Browse the repository at this point in the history
…isteners (#17394)
  • Loading branch information
trueadm authored Nov 18, 2019
1 parent d32deae commit af6f895
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ReactTestHostConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ export function createInstance(
): Instance {
let propsToUse = props;
if (enableFlareAPI) {
if (props.listeners != null) {
// We want to remove the "listeners" prop
if (props.DEPRECATED_flareListeners != null) {
// We want to remove the "DEPRECATED_flareListeners" prop
// as we don't want it in the test renderer's
// instance props.
const {listeners, ...otherProps} = props; // eslint-disable-line
const {DEPRECATED_flareListeners, ...otherProps} = props; // eslint-disable-line
propsToUse = otherProps;
}
}
Expand Down

0 comments on commit af6f895

Please sign in to comment.