Skip to content

feat: Changing the way the breadcrumb is built to accomodate variants #1790

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

Merged
merged 1 commit into from
May 7, 2025

Conversation

aranega
Copy link
Contributor

@aranega aranega commented Apr 23, 2025

This PR changes slightly the way the breadcrumb is built to introduce clear different paths for each variant. This avoids to have too much logic when building the breadcrumb, and will help to introduce new variants (with @seankmartin and @Aiga115, we are working on a specific variant for neuroglancer).

The creation of each variation of the component is just delayed into a closure, but the result is not memoized right now. We can update the PR with the memoization of the built component if required.

@uermel uermel requested a review from codemonkey800 April 24, 2025 17:08
Copy link
Contributor

@codemonkey800 codemonkey800 left a comment

Choose a reason for hiding this comment

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

thank you for this 🫡

@codemonkey800 codemonkey800 merged commit 9997dd9 into chanzuckerberg:main May 7, 2025
5 checks passed
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