GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improve flagging of `React.cache` to remove indirection in bundled code by gnoff · Pull Request #28263 · react/react

Conversation

@gnoff

@gnoff gnoff commented Feb 7, 2024

Copy link
Copy Markdown
Collaborator

Uses a better technique for conditionally disabling cache on the client

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gnoff
Uses a better technique for conditionally disabling cache on the client
264dfba
@gnoff
gnoff requested a review from acdlite February 7, 2024 00:44
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 7, 2024
@react-sizebot

react-sizebot commented Feb 7, 2024

Copy link
Copy Markdown

Comparing: 1beb941...264dfba

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 176.66 kB 176.66 kB = 55.01 kB 55.01 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 178.65 kB 178.65 kB = 55.59 kB 55.59 kB
facebook-www/ReactDOM-prod.classic.js = 591.78 kB 591.78 kB = 104.44 kB 104.44 kB
facebook-www/ReactDOM-prod.modern.js = 575.53 kB 575.53 kB = 101.54 kB 101.54 kB
test_utils/ReactAllWarnings.js Deleted 67.02 kB 0.00 kB Deleted 16.42 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react/umd/react.production.min.js = 12.81 kB 12.78 kB = 4.95 kB 4.93 kB
oss-experimental/react/umd/react.profiling.min.js = 12.81 kB 12.78 kB = 4.95 kB 4.93 kB
oss-stable/react/umd/react.production.min.js = 11.94 kB 11.91 kB = 4.67 kB 4.65 kB
oss-stable/react/umd/react.profiling.min.js = 11.94 kB 11.91 kB = 4.67 kB 4.65 kB
oss-stable-semver/react/umd/react.production.min.js = 11.91 kB 11.88 kB = 4.64 kB 4.63 kB
oss-stable-semver/react/umd/react.profiling.min.js = 11.91 kB 11.88 kB = 4.64 kB 4.63 kB
oss-experimental/react/cjs/react.production.min.js = 9.07 kB 9.05 kB = 3.42 kB 3.42 kB
oss-stable/react/cjs/react.production.min.js = 8.14 kB 8.12 kB = 3.14 kB 3.13 kB
oss-stable-semver/react/cjs/react.production.min.js = 8.12 kB 8.09 kB = 3.11 kB 3.11 kB
test_utils/ReactAllWarnings.js Deleted 67.02 kB 0.00 kB Deleted 16.42 kB 0.00 kB

Generated by 🚫 dangerJS against 264dfba

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

acdlite
acdlite approved these changes Feb 7, 2024
View reviewed changes
@gnoff
gnoff merged commit a1ace9d into react:main Feb 7, 2024
@gnoff
gnoff deleted the improve-cache-fork branch February 7, 2024 01:40
github-actions Bot pushed a commit that referenced this pull request Feb 7, 2024
@gnoff
Improve flagging of React.cache to remove indirection in bundled co…
a6a77a2
…de (#28263)

Uses a better technique for conditionally disabling cache on the client

DiffTrain build for [a1ace9d](a1ace9d)
@ztanner ztanner mentioned this pull request Feb 9, 2024
Update React from 2bc7d336a to ba5e6a832 vercel/next.js#61837
Merged
huozhi pushed a commit to vercel/next.js that referenced this pull request Feb 9, 2024
@ztanner
Update React from 2bc7d336a to ba5e6a832 (#61837)
f165514
Updates React from 2bc7d336a to ba5e6a832.

### React upstream changes

- react/react#28283
- react/react#28280
- react/react#28079
- react/react#28233
- react/react#28276
- react/react#28272
- react/react#28265
- react/react#28259
- react/react#28153
- react/react#28246
- react/react#28218
- react/react#28263
- react/react#28257
- react/react#28261
- react/react#28262
- react/react#28260
- react/react#28258
- react/react#27864
- react/react#28254
- react/react#28219
- react/react#28248
- react/react#28216
- react/react#28249
- react/react#28241
- react/react#28243
- react/react#28253
- react/react#28256
- react/react#28236
- react/react#28237
- react/react#28242
- react/react#28251
- react/react#28252

Closes NEXT-2411
@ztanner ztanner mentioned this pull request Mar 19, 2024
(backport) Update React from 60a927d04 to 14898b6a9 vercel/next.js#63442
Closed
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
@gnoff @AndyPengc12
Improve flagging of React.cache to remove indirection in bundled co…
7655daf
…de (react#28263)

Uses a better technique for conditionally disabling cache on the client
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
@gnoff
Improve flagging of React.cache to remove indirection in bundled co…
363b626
…de (#28263)

Uses a better technique for conditionally disabling cache on the client

DiffTrain build for commit a1ace9d.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@gnoff
Improve flagging of React.cache to remove indirection in bundled co…
56401e6
…de (react#28263)

Uses a better technique for conditionally disabling cache on the client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@acdlite acdlite acdlite approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@gnoff @react-sizebot @acdlite @facebook-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.