Skip to content

Refactor: Get rid of overly generic getExpectedRequestStore function #81791

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

Merged
merged 1 commit into from
Jul 18, 2025

Conversation

unstubbable
Copy link
Contributor

@unstubbable unstubbable commented Jul 18, 2025

The places in which we called getExpectedRequestStore() were already narrowing down the work unit store type to a request store. This allows us to delete the function, and call throwForMissingRequestStore() directly instead.

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. type: next labels Jul 18, 2025
Copy link
Contributor Author

unstubbable commented Jul 18, 2025

@unstubbable unstubbable marked this pull request as ready for review July 18, 2025 08:51
@unstubbable unstubbable requested a review from lubieowoce July 18, 2025 08:51
@unstubbable unstubbable changed the base branch from canary to graphite-base/81791 July 18, 2025 10:19
@unstubbable unstubbable force-pushed the hl/delete-get-expected-request-store branch from 1c46f4f to af0f51a Compare July 18, 2025 10:19
@unstubbable unstubbable changed the base branch from graphite-base/81791 to hl/vscode-types-tasks July 18, 2025 10:19
@unstubbable unstubbable changed the base branch from hl/vscode-types-tasks to graphite-base/81791 July 18, 2025 10:38
@unstubbable unstubbable force-pushed the graphite-base/81791 branch from c993b14 to 298acda Compare July 18, 2025 10:39
@unstubbable unstubbable force-pushed the hl/delete-get-expected-request-store branch from af0f51a to 6d09840 Compare July 18, 2025 10:39
@graphite-app graphite-app bot changed the base branch from graphite-base/81791 to canary July 18, 2025 10:39
@unstubbable unstubbable force-pushed the hl/delete-get-expected-request-store branch from 6d09840 to f5473d3 Compare July 18, 2025 10:39
Copy link

codspeed-hq bot commented Jul 18, 2025

CodSpeed Performance Report

Merging #81791 will not alter performance

Comparing hl/delete-get-expected-request-store (af0f51a) with canary (f3beddf)

Summary

✅ 9 untouched benchmarks

The places in which we called `getExpectedRequestStore()` were already
narrowing down the work unit store type to a request store. This allows
us to delete the function, and call `throwForMissingRequestStore()`
directly instead.
@unstubbable unstubbable force-pushed the hl/delete-get-expected-request-store branch from f5473d3 to 896ec59 Compare July 18, 2025 10:49
@unstubbable unstubbable merged commit 55e9041 into canary Jul 18, 2025
160 of 161 checks passed
@unstubbable unstubbable deleted the hl/delete-get-expected-request-store branch July 18, 2025 11:24
alii pushed a commit to Jarred-Sumner/next.js that referenced this pull request Jul 21, 2025
vercel#81791)

The places in which we called `getExpectedRequestStore()` were already narrowing down the work unit store type to a request store. This allows us to delete the function, and call `throwForMissingRequestStore()` directly instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants