Open markjaniczak opened 5 years ago
Oh dear, that documentation seems to be quite out of date :-/
Segments are now called Chunks. I probably should just remove this from the documentation though, as custom matchers are likely to change significantly in a future version.
Ah ok - I'll keep an eye out for future updates. I managed to workaround the issue for now.
Are there any plans to allow for custom chunk types? An application of that would be for making a breadcrumb component that could build the path using all chunks in the current route of a custom type.
Are there any plans to allow for custom chunk types?
I've got plans for something like this, although it's probably going to take a while to get around to it.
I'm struggling to understand how to make a custom matcher following this doc:
https://frontarm.com/navi/en/reference/matchers/#custom-matchers
The doc above talks about needing to return an array of segment objects but I can't see segments in the Types doc:
https://frontarm.com/navi/en/reference/data-types/#segment