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

Refactor Breadcrumbs component #533

Merged
merged 2 commits into from
Nov 18, 2019

Conversation

ashmaroli
Copy link
Member

@ashmaroli ashmaroli commented Nov 17, 2019

  • Define splat parameter with a default value of ''
  • Optimize by reducing conditional branches and iterations

* Convert into class component
* Define `splat` prop with a default value of ''
* Use class property to stash non-collection resource types
* Optimize by reducing conditional branches and iterations
Can be memoized later with React 16
@ashmaroli ashmaroli merged commit e7680f2 into jekyll:master Nov 18, 2019
@ashmaroli ashmaroli deleted the refactor-breadcrumbs branch November 18, 2019 09:16
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