#useMatches returning undefined
1 messages · Page 1 of 1 (latest)
useMatches is not returning an undefined value, but the [].at is undefined on old versions of Safari
this is actually a new javascript feature https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at
You'll need to use the older matches[matches.length - 1] trick instead if you want to support that
or include a polyfill
Ah yes! I totally forgot about that!