Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix recording page refresh loop #8685

Merged
merged 1 commit into from
Feb 18, 2022
Merged

Conversation

rcmarron
Copy link
Contributor

Changes

The recording page could get in a refresh loop on the persons page. It was hard for me to figure out exactly what's causing it, but if I make a distinct_id have URL encoded params (e.g. an email), I can repro it sometimes...

Pretty sure this is what this user is hitting.

How did you test this code?

Got the bug to repro sometimes (using identify(user.email)), and then I made this change. Refreshed the page a ton of times. Couldn't get it to repro again.

Copy link
Contributor

@alexkim205 alexkim205 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, I couldn't get it to reproduce, but it seems like this shouldve been how we create key from the beginning.

@@ -161,7 +161,7 @@ export function Person({ _: urlId }: { _?: string } = {}): JSX.Element | null {
key={PersonsTabType.SESSION_RECORDINGS}
>
<SessionRecordingsTable
key={person.distinct_ids.join('__')} // force refresh if distinct_ids change
key={person.uuid} // force refresh if user changes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, do you think it's worth making the fix in the EventsTable above as well?

@rcmarron rcmarron merged commit 8ffcce1 into master Feb 18, 2022
@rcmarron rcmarron deleted the fix/recording-list-refresh-loop branch February 18, 2022 01:53
EDsCODE added a commit that referenced this pull request Feb 18, 2022
* master:
  hobby: Wait for ClickHouse and for Postgres before starting (#8686)
  Part 2: Deprecate old tags and upgrade to new tags Backend (#8529)
  Remove flake8-commas (#8695)
  Update Breakdown props to use filter groups (#8679)
  Automatically switch to the right project if possible (#8681)
  Super Lazy VMs (#8609)
  .github/workflows/ci-backend.yml: fix flake8 config (#8676)
  Fix recording page refresh loop (#8685)
  Instance status configuration (#8096)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants