Skip to content

Implemention of a lazy context propagation algorithm #4

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

Closed
wants to merge 1 commit into from

Conversation

gnoff
Copy link
Owner

@gnoff gnoff commented Jun 20, 2019

No description provided.

// we may be able to skip if we ran the context check in simple memo, forwardRef
// or other updaters prior to updateFunctionComponent
canBailout(workInProgress, renderExpirationTime)
) {
bailoutHooks(current, workInProgress, renderExpirationTime);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bailout lol

@@ -1049,6 +1049,142 @@ describe('ReactNewContext', () => {
span(2),
]);
});
describe('stress test', () => {
it('controlled lots of contexts', () => {
let ContextA = React.createContext(0);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createContext(0) looks wired

@gnoff gnoff closed this Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants