This synthetic event is reused for performance reasons.
See original GitHub issueGetting this error in chrome console when using custom slider with 1 handle on each side.
commons.js:1342 Warning: This synthetic event is reused for performance reasons. If you’re seeing this, you’re adding a new property in the synthetic event object. The property is never released. See https://fb.me/react-event-pooling for more information.
Error alerts in this section of react:
if (process.env.NODE_ENV !== 'production') {
(function () {
var printWarning = function printWarning(format) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
var argIndex = 0;
var message = 'Warning: ' + format.replace(/%s/g, function () {
return args[argIndex++];
});
if (typeof console !== 'undefined') {
console.error(message); \\ERROR IS CONSOLE LOGGED HERE
}
try {
// --- Welcome to debugging React ---
// This error was thrown as a convenience so that you can use this stack
// to find the callsite that caused this warning to fire.
throw new Error(message);
} catch (x) {}
};
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Warning: This synthetic event is reused for performance ...
This is what React documentation says about it: "The SyntheticEvent is pooled. This means that the SyntheticEvent object will be reused and all ......
Read more >This synthetic event is reused for performance reasons #451
ERROR Warning: This synthetic event is reused for performance reasons. If you're seeing this, you're accessing the property nativeEvent on a ...
Read more >event.persist() should be called when using React synthetic ...
React uses the SyntheticEvent objects to wrap native events. For performance reasons, synthetic events are pooled and reused across multiple ...
Read more >How to solve React's "This synthetic event is reused ... - akoskm
Warning: This synthetic event is reused for performance reasons. If you see this, you're accessing the property target on a ...
Read more >React SyntheticEvent reuse - Medium
For performance reasons, React reuses the SyntheticEvent objects by pooling them. This means that the SyntheticEvent object is reused, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Probably has to do with these lines: https://github.com/airbnb/rheostat/blob/master/src/Slider.jsx#L578-L579
They’re not really necessary. Want to remove them in a PR?
It’s all good. I realized my old link pointed to
master
so I’ve edited that as well.