-
Notifications
You must be signed in to change notification settings - Fork 47.1k
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
Add "unstable_" prefix to react-cache and jest-react #13929
Conversation
scripts/error-codes/codes.json
Outdated
"291": "Log of yielded values is not empty. Call expect(ReactTestRenderer).toHaveYielded(...) first.", | ||
"292": "The matcher `toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).toHaveYielded(expectedYields)" | ||
"291": "Log of yielded values is not empty. Call expect(ReactTestRenderer).unstable_toHaveYielded(...) first.", | ||
"292": "The matcher `unstable_toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).unstable_toHaveYielded(expectedYields)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert? We don't change this file manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh schwoops.
@@ -18,12 +18,12 @@ describe('ReactCache', () => { | |||
}); | |||
|
|||
it('throws a promise if the requested value is not in the cache', async () => { | |||
const {createCache, createResource} = ReactCache; | |||
const {createCache, unstable_createResource} = ReactCache; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
createCache
isn't unstable but createResource
is? Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Andrew has concerns that createResource
is less stable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok just wanted to make sure it's intentional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
createCache doesn't exist anymore after I merge this: #13865
Let's land this PR as-is then I'll land mine.
Details of bundled changes.Comparing: 508b5fb...3001e23 scheduler
Generated by 🚫 dangerJS |
* Add "unstable_" prefix to react-cache createResource and jest-react matchers * Reverted accidental change to error-codes JSON * Remove unstable_ prefix from internal React tests for jest-test
Add "unstable_" prefix to
react-cache
createResource
andjest-react
matchers.