@nordcraft/runtime 1.0.20 → 1.0.22

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/package.json CHANGED
@@ -4,8 +4,8 @@
4
4
  "type": "module",
5
5
  "homepage": "https://github.com/nordcraftengine/nordcraft",
6
6
  "dependencies": {
7
- "@nordcraft/core": "1.0.20",
8
- "@nordcraft/std-lib": "1.0.20",
7
+ "@nordcraft/core": "1.0.22",
8
+ "@nordcraft/std-lib": "1.0.22",
9
9
  "fast-deep-equal": "3.1.3",
10
10
  "path-to-regexp": "6.3.0"
11
11
  },
@@ -21,5 +21,5 @@
21
21
  "files": ["dist", "src"],
22
22
  "main": "dist/page.main.js",
23
23
  "types": "dist/page.main.d.ts",
24
- "version": "1.0.20"
24
+ "version": "1.0.22"
25
25
  }
@@ -941,7 +941,9 @@ export function createAPI({
941
941
  requestSettings,
942
942
  componentData: initialComponentData,
943
943
  })
944
- } else {
944
+ } else if (!ctx.dataSignal.get().Apis?.[api.name]) {
945
+ // If the api is not set in the dataSignal, we need to initialize it.
946
+ // If it is set and autoFetch is false, we do not want to reset it.
945
947
  ctx.dataSignal.update((data) => {
946
948
  return {
947
949
  ...data,