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.

Bug: missing interactions in profiler

See original GitHub issue

React version: 16.13.1

Steps To Reproduce

There’s a few things involved here, so it’s hard to describe the exact steps, but here’s a reduced test case:

The test case has a parent and child component, both of which are dispatching an action to Redux and subscribing to Redux state. Each action dispatch is wrapped in unstable_trace.

Note I did try to reduce the test case further to see if I could reproduce without Redux and React Redux, but to no avail. However, due to the fact that the state updates occur—we’re just missing the interactions—I believe this problem is not due to either of those libraries.

The current behavior

Both state updates apply (parent and child), but the profiler only seems to capture the interactions for the child, not the parent. The parent interaction is missing.

The test case is logging interactions to the console so you can verify there.

Here’s a screenshot to show what I mean. I took this screenshot after using the profiler’s “reload and start profiling” feature:

image

The expected behavior

No missing interactions


Potentially related: https://github.com/facebook/react/issues/15566

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
bvaughncommented, Jul 23, 2020

No worries. Good luck~

0reactions
OliverJAshcommented, Dec 25, 2020

This is still affecting me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug, or am I missing an interaction? Couldn't re-disturb one ...
So I think I just had a game-affecting bug, although it didn't change the outcome of this game because I was dead either...
Read more >
Missing feature? Vive Cosmos OpenXR Interaction Profile ...
Bug Missing feature? Vive Cosmos OpenXR Interaction Profile doesn't exist.
Read more >
Introducing the React Profiler – React Blog
Introducing the React Profiler · Browsing commits · Filtering commits · Flame chart · Ranked chart · Component chart · Interactions.
Read more >
Solved: Interactions Missing And Bugs - Answers HQ
Solved: I just started recently playing the sims 4 on PlayStation 4 and the first day playing it was perfectly fine. I love...
Read more >
Why you've been bad about Profiling React Apps
stylized performance profile tab in developer tools ... Here's the interaction that I'm doing that's creating that flamegraph:.
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