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

fix(breadcrumbs): support computed overrides #331

Merged
merged 1 commit into from
Oct 16, 2024
Merged

fix(breadcrumbs): support computed overrides #331

merged 1 commit into from
Oct 16, 2024

Conversation

thorge
Copy link
Contributor

@thorge thorge commented Oct 11, 2024

This PR introduces enhancements to the useBreadcrumbItems function in order to facilitate the dynamic updating of breadcrumbs, e. g. based on route parameters.

πŸ”— Linked issue

Resolves #327

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

  • Changed the type of overrides in BreadcrumbProps from an array to MaybeRefOrGetter<(BreadcrumbItemProps | false | undefined)[]> to allow for computed values.
  • Updated the assignment of overrides to use toValue for proper reactive handling of the options.overrides.

- Changed the type of `overrides` in `BreadcrumbProps` from an array to `MaybeRefOrGetter<(BreadcrumbItemProps | false | undefined)[]>` to allow for computed values.
- Updated the assignment of `overrides` to use `toValue` for proper reactive handling of the `options.overrides`.
Copy link

vercel bot commented Oct 11, 2024

@thorge is attempting to deploy a commit to the My Team Team on Vercel.

A member of the Team first needs to authorize it.

@harlan-zw harlan-zw changed the title Update BreadcrumbProps to support computed overrides fix(breadcrumbs): support computed overrides Oct 16, 2024
@harlan-zw
Copy link
Owner

Thanks!

@harlan-zw harlan-zw merged commit 79e4d63 into harlan-zw:main Oct 16, 2024
1 check failed
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.

Unable to Dynamically Generate Dynamic Breadcrumbs
2 participants