question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This synthetic event is reused for performance reasons.

See original GitHub issue

Getting 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:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
goatslackercommented, Sep 12, 2016

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?

0reactions
goatslackercommented, Nov 10, 2016

It’s all good. I realized my old link pointed to master so I’ve edited that as well.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found