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

Avoid passing down isFirst and isLast props #15043

Merged
merged 1 commit into from
Apr 19, 2019

Conversation

youknowriad
Copy link
Contributor

This PR refactors the block list, block and block mover components to avoid computing isFirst and isLast props early in the process. The idea is that these are only needed in the movers.

@youknowriad youknowriad self-assigned this Apr 18, 2019
@youknowriad youknowriad added the [Type] Code Quality Issues or PRs that relate to code quality label Apr 18, 2019
@youknowriad youknowriad merged commit a9671d6 into master Apr 19, 2019
@youknowriad youknowriad deleted the refactor/is-first-is-last-mover branch April 19, 2019 08:57
daniloercoli added a commit that referenced this pull request Apr 19, 2019
…rnmobile/887-History-stack-is-not-empty-on-a-fresh-start-of-the-editor

* 'master' of https://github.com/WordPress/gutenberg:
  Avoid running hasMetaBoxes on each subscribe (#15041)
  Avoid passing down isFirst and isLast props (#15043)
  Add "Roadmap" document with an overview of projects in consideration. (#14907)
  Testing: Update tests to use Escape press to activate block toolbar (#15063)
  Testing: Skip unreliable end-to-end tests (#15059)
@youknowriad youknowriad added this to the 5.6 (Gutenberg) milestone May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants