@plasmicapp/loader-react 1.0.198 → 1.0.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/loader-react.cjs.development.js +6 -0
- package/dist/loader-react.cjs.development.js.map +1 -1
- package/dist/loader-react.cjs.production.min.js +1 -1
- package/dist/loader-react.cjs.production.min.js.map +1 -1
- package/dist/loader-react.esm.js +6 -0
- package/dist/loader-react.esm.js.map +1 -1
- package/dist/utils.d.ts +2 -16
- package/package.json +4 -4
|
@@ -1210,6 +1210,12 @@ function getCompMetas(metas, lookup) {
|
|
|
1210
1210
|
return _extends({}, meta, {
|
|
1211
1211
|
params: match.params
|
|
1212
1212
|
});
|
|
1213
|
+
}).sort(function (meta1, meta2) {
|
|
1214
|
+
return (// We sort the matched component metas by the number of path params, so
|
|
1215
|
+
// if there are two pages `/products/foo` and `/products/[slug]`,
|
|
1216
|
+
// the first one will have higher precedence.
|
|
1217
|
+
Array.from(Object.keys(meta1.params || {})).length - Array.from(Object.keys(meta2.params || {})).length
|
|
1218
|
+
);
|
|
1213
1219
|
});
|
|
1214
1220
|
}
|
|
1215
1221
|
function getLookupSpecName(lookup) {
|