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)
[x] ๐ 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.
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
๐ Description
overrides
inBreadcrumbProps
from an array toMaybeRefOrGetter<(BreadcrumbItemProps | false | undefined)[]>
to allow for computed values.overrides
to usetoValue
for proper reactive handling of theoptions.overrides
.