Skip to content

ref(replays): Remove extra "retry" state from useReplayData#34910

Merged
ryan953 merged 2 commits into
masterfrom
ryan953/useReplayData-retry-cleanup
May 25, 2022
Merged

ref(replays): Remove extra "retry" state from useReplayData#34910
ryan953 merged 2 commits into
masterfrom
ryan953/useReplayData-retry-cleanup

Conversation

@ryan953

@ryan953 ryan953 commented May 23, 2022

Copy link
Copy Markdown
Member

Remove the retry state variable, we can simply pass loadEvents on down so children can load more data.

Setting the var was one way to debounce calls to onRetry, but really children can look at the fetching var to know if they should be calling onRetry or not at any given time. loadEvents could also look at fetching and have a guard, but none of this downstream stuff matters now anyway because nothing is misbehaving right now.

@ryan953 ryan953 force-pushed the ryan953/useReplayData-retry-cleanup branch from f0bf1a3 to 94ac697 Compare May 24, 2022 17:44
@ryan953 ryan953 marked this pull request as ready for review May 24, 2022 17:44
@ryan953 ryan953 requested a review from a team May 24, 2022 17:44
@ryan953 ryan953 enabled auto-merge (squash) May 24, 2022 17:48
@ryan953 ryan953 merged commit fd31b8b into master May 25, 2022
@ryan953 ryan953 deleted the ryan953/useReplayData-retry-cleanup branch May 25, 2022 09:41
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants