@solidjs/router 0.14.4 → 0.14.5
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/data/cache.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/data/cache.js
CHANGED
|
@@ -62,7 +62,7 @@ export function cache(fn, name) {
|
|
|
62
62
|
const data = e && (e.router.data || (e.router.data = {}));
|
|
63
63
|
if (data && key in data)
|
|
64
64
|
return data[key];
|
|
65
|
-
if (Array.isArray(dataOnly) && !
|
|
65
|
+
if (Array.isArray(dataOnly) && !matchKey(key, dataOnly)) {
|
|
66
66
|
data[key] = undefined;
|
|
67
67
|
return Promise.resolve();
|
|
68
68
|
}
|
package/dist/index.js
CHANGED
|
@@ -939,7 +939,7 @@ function cache(fn, name) {
|
|
|
939
939
|
if (dataOnly) {
|
|
940
940
|
const data = e && (e.router.data || (e.router.data = {}));
|
|
941
941
|
if (data && key in data) return data[key];
|
|
942
|
-
if (Array.isArray(dataOnly) && !
|
|
942
|
+
if (Array.isArray(dataOnly) && !matchKey(key, dataOnly)) {
|
|
943
943
|
data[key] = undefined;
|
|
944
944
|
return Promise.resolve();
|
|
945
945
|
}
|