tatethurston / nextjs-routes

Type safe routing for Next.js
MIT License
578 stars 21 forks source link

Address intercepting parallel routes #195

Closed mrhut10 closed 2 months ago

mrhut10 commented 2 months ago

this is an initial play to address #194

Parallel Support

it will filter out @ prefixed segments

Intercepting Support

will ignore out (.) prefixes below at @ prefixed segment

will pop segments when (..) prefix present below at @ prefixed segment

will reset all segments to base when see a (...) prefix segment below at @ prefixed segment

tatethurston commented 2 months ago

Thanks @mrhut10 I think we can simplify the logic here: https://github.com/tatethurston/nextjs-routes/pull/197/files#diff-0f1014b17b5948e279ed4a1655ad41da1f62234c1f9dfde1f3dfd03635a0bd6d

Specifically, omitting any filepath that contains (.) (..) (..)(...) (...) and then filtering out any segments that start with '@'.