You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release includes a few key changes to the package. If you're migrating from v1.x.x please check out the migration guide. I don't anticipate any more core changes to the API, but please let me know in the issues tab if there is a problem with this current implementation.
Sensible defaults: You no longer need to explicitly pass breadcrumb strings or components in. For example: /one/two --> Home / One / Two (with no route config passed).
API change: when mapping over breadcrumbs. Instead of returning an array of objects like [{ breadcrumb, path, /* ... */ }] to the component using the HOC. We now just return a flat array of breadcrumb components with props included. This makes the rendering step a bit easier to read / use.
There is a new options object with an optional excludePaths param to easily opt-out of generating breadcrumbs for certain paths
Adds location object to each breadcrumb for more flexibility #23 thanks @mrchief. This is a breaking change only if you happen to be using the (not recommended, but supported) getBreadcrumbs exported function instead of the HOC itself.
Support extending react-router route config with a breadcrumbs prop. Fixes #18 by no longer requiring breadcrumb to be present in route objects if it is not needed for that specific path.