Skip to content

Commit af6f895

Browse files
authored
[react-interactions] Rename Flare listeners prop to DEPRECATED_flareListeners (#17394)
1 parent d32deae commit af6f895

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ReactTestHostConfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ export function createInstance(
149149
): Instance {
150150
let propsToUse = props;
151151
if (enableFlareAPI) {
152-
if (props.listeners != null) {
153-
// We want to remove the "listeners" prop
152+
if (props.DEPRECATED_flareListeners != null) {
153+
// We want to remove the "DEPRECATED_flareListeners" prop
154154
// as we don't want it in the test renderer's
155155
// instance props.
156-
const {listeners, ...otherProps} = props; // eslint-disable-line
156+
const {DEPRECATED_flareListeners, ...otherProps} = props; // eslint-disable-line
157157
propsToUse = otherProps;
158158
}
159159
}

0 commit comments

Comments
 (0)