Skip to content

Conversation

@jerryzhou196
Copy link
Member

useReplayTableSort isn't using the DEFAULT_SORT table as it should be.

@jerryzhou196 jerryzhou196 marked this pull request as ready for review November 6, 2025 17:58
@jerryzhou196 jerryzhou196 requested a review from a team as a code owner November 6, 2025 17:58
@jerryzhou196 jerryzhou196 requested a review from billyvg November 6, 2025 17:58
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 6, 2025
@billyvg billyvg requested a review from ryan953 November 6, 2025 21:40
Copy link
Member

@ryan953 ryan953 left a comment

Choose a reason for hiding this comment

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

the useRef probably isn't doing anything useful actually in this hook. It's applied to the sortType outside of useCallback, so values returned from the hook will be 'new' each time because the value inside .current is new each time.

Looks good for better sort defaults.
Before we had -started_at and asc which are not the same sort direction. Now we have -started_at and desc which are the same!

@jerryzhou196
Copy link
Member Author

@ryan953 I removed the useRef and tested. Let me know your thoughts!

@jerryzhou196 jerryzhou196 merged commit 9498924 into master Nov 7, 2025
47 checks passed
@jerryzhou196 jerryzhou196 deleted the fix-use-table-sort branch November 7, 2025 20:50
Jesse-Box pushed a commit that referenced this pull request Nov 12, 2025
)

useReplayTableSort isn't using the `DEFAULT_SORT` table as it should be.
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
)

useReplayTableSort isn't using the `DEFAULT_SORT` table as it should be.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants