navi icon indicating copy to clipboard operation
navi copied to clipboard

Missing Segment type in docs for a custom matcher

Open markjaniczak opened this issue 6 years ago • 3 comments

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

markjaniczak avatar Sep 06 '19 03:09 markjaniczak

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.

jamesknelson avatar Sep 10 '19 05:09 jamesknelson

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.

markjaniczak avatar Sep 10 '19 06:09 markjaniczak

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.

jamesknelson avatar Sep 10 '19 06:09 jamesknelson