Skip to content

Avoid passing down isFirst and isLast props#15043

Merged
youknowriad merged 1 commit intomasterfrom
refactor/is-first-is-last-mover
Apr 19, 2019
Merged

Avoid passing down isFirst and isLast props#15043
youknowriad merged 1 commit intomasterfrom
refactor/is-first-is-last-mover

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