Skip to content
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 pass information to react-effect callbacks #574

Merged
merged 2 commits into from
Mar 14, 2019

Conversation

lemonmade
Copy link
Member

This PR introduces two features to @shopify/react-effect:

  1. A maxPasses to limit possible spinning forever. This defaults to 5 max iterations
  2. afterEachPass/ betweenEachPass now provide information about the pass, including which iteration we are on, and how long the render/ resolution parts took.

I want to use these to try to remove some possibilities of render-related weirdness in the Web.

Copy link
Member

@GoodForOneFare GoodForOneFare left a comment

Choose a reason for hiding this comment

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

👍 I am -- of course -- nervous about the low default limit, but I'm nervous about everything.

packages/react-effect/src/server.tsx Show resolved Hide resolved
packages/react-effect/src/server.tsx Show resolved Hide resolved
@lemonmade lemonmade merged commit 501fe88 into master Mar 14, 2019
@lemonmade lemonmade deleted the add-pass-info-to-effect branch March 14, 2019 16:22
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