Skip to content

Add back lost cache test#24317

Merged
rickhanlonii merged 1 commit into
react:mainfrom
rickhanlonii:rh-add-cache-test
Apr 8, 2022
Merged

Add back lost cache test#24317
rickhanlonii merged 1 commit into
react:mainfrom
rickhanlonii:rh-add-cache-test

Conversation

@rickhanlonii

@rickhanlonii rickhanlonii commented Apr 8, 2022

Copy link
Copy Markdown
Contributor

I noticed that this commit changed this test from handling the mount case, to handing the update case. The major difference that I can see is that in the mount case the root cache is used (so there's no cleanup) but in the update case it's not used (so there is a cleanup). Seems valuable to test both cases (and writing this test helped me to understand the cache/cleanup behavior better).

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Apr 8, 2022
@sizebot

sizebot commented Apr 8, 2022

Copy link
Copy Markdown

Comparing: bafe912...9c7e5eb

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 = 131.40 kB 131.40 kB = 41.98 kB 41.99 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 136.45 kB 136.45 kB = 43.43 kB 43.43 kB
facebook-www/ReactDOM-prod.classic.js = 433.07 kB 433.07 kB = 79.60 kB 79.60 kB
facebook-www/ReactDOM-prod.modern.js = 418.07 kB 418.07 kB = 77.24 kB 77.24 kB
facebook-www/ReactDOMForked-prod.classic.js = 433.07 kB 433.07 kB = 79.61 kB 79.61 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 9c7e5eb

@rickhanlonii
rickhanlonii merged commit b86baa1 into react:main Apr 8, 2022
@rickhanlonii
rickhanlonii deleted the rh-add-cache-test branch April 8, 2022 19:34
@josephsavona

Copy link
Copy Markdown
Contributor

Cool! On mobile so I can’t resd the original commit well rn but I remember deleting some test cases that were duplicates of each other. If this wasn’t a dup it makes sense to add back!

👍

rickhanlonii added a commit that referenced this pull request Apr 13, 2022
facebook-github-bot pushed a commit to react/react-native that referenced this pull request Apr 14, 2022
Summary:
This sync includes the following changes:
- **[8dcedba](react/react@8dcedba15 )**: Add fallback shim for AbortController ([#24285](react/react#24285)) //<Ricky>//
- **[b86baa1](react/react@b86baa1cb )**: Add back lost cache test ([#24317](react/react#24317)) //<Ricky>//
- **[bafe912](react/react@bafe912a5 )**: update types for InputContinuousLane and DefaultLane ([#24316](react/react#24316)) //<Leo>//
- **[4ebaeae](react/react@4ebaeae40 )**: moved mutation code to passive ([#24251](react/react#24251)) //<Luna Ruan>//
- **[caa60e8](react/react@caa60e8fc )**: update types for NonIdleLanes and IdleLane ([#24313](react/react#24313)) //<Leo>//
- **[1f7a901](react/react@1f7a901d7 )**: Fix false positive lint error with large number of branches  ([#24287](react/react#24287)) //<Stephen Cyron>//
- **[f56dfe9](react/react@f56dfe950 )**: Warn on setState() in useInsertionEffect() ([#24298](react/react#24298)) //<dan>//
- **[d68b09d](react/react@d68b09def )**: Fix warning about setState in useEffect ([#24295](react/react#24295)) //<dan>//
- **[0579154](react/react@057915477 )**: Update create-subscription README ([#24294](react/react#24294)) //<dan>//

Changelog:
[General][Changed] - React Native sync for revisions e8f4a66...8dcedba

jest_e2e[run_all_tests]

Reviewed By: kacieb

Differential Revision: D35581147

fbshipit-source-id: 33661d77eb000fdedab7e506a458fc739eab0056
rickhanlonii added a commit that referenced this pull request Apr 14, 2022
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
Saadnajmi pushed a commit to Saadnajmi/react-native-macos that referenced this pull request Jan 15, 2023
Summary:
This sync includes the following changes:
- **[8dcedba](react/react@8dcedba15 )**: Add fallback shim for AbortController ([react#24285](react/react#24285)) //<Ricky>//
- **[b86baa1](react/react@b86baa1cb )**: Add back lost cache test ([react#24317](react/react#24317)) //<Ricky>//
- **[bafe912](react/react@bafe912a5 )**: update types for InputContinuousLane and DefaultLane ([react#24316](react/react#24316)) //<Leo>//
- **[4ebaeae](react/react@4ebaeae40 )**: moved mutation code to passive ([react#24251](react/react#24251)) //<Luna Ruan>//
- **[caa60e8](react/react@caa60e8fc )**: update types for NonIdleLanes and IdleLane ([react#24313](react/react#24313)) //<Leo>//
- **[1f7a901](react/react@1f7a901d7 )**: Fix false positive lint error with large number of branches  ([react#24287](react/react#24287)) //<Stephen Cyron>//
- **[f56dfe9](react/react@f56dfe950 )**: Warn on setState() in useInsertionEffect() ([react#24298](react/react#24298)) //<dan>//
- **[d68b09d](react/react@d68b09def )**: Fix warning about setState in useEffect ([react#24295](react/react#24295)) //<dan>//
- **[0579154](react/react@057915477 )**: Update create-subscription README ([react#24294](react/react#24294)) //<dan>//

Changelog:
[General][Changed] - React Native sync for revisions e8f4a66...8dcedba

jest_e2e[run_all_tests]

Reviewed By: kacieb

Differential Revision: D35581147

fbshipit-source-id: 33661d77eb000fdedab7e506a458fc739eab0056
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants