@devvit/public-api 0.10.20-next-2024-05-02-51d46528d.0 → 0.10.20-next-2024-05-02-e85877b9a.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,7 @@ export function makeUseIntervalHook(reconciler) {
30
30
  }
31
31
  currentState[hookIndex] = {
32
32
  running: true,
33
- lastRun: Date.now(),
33
+ lastRun: currentState[hookIndex]?.lastRun ?? Date.now(),
34
34
  preventCallback: false,
35
35
  type: Hook.INTERVAL,
36
36
  };
package/meta.json CHANGED
@@ -12898,7 +12898,7 @@
12898
12898
  "format": "esm"
12899
12899
  },
12900
12900
  "src/devvit/internals/blocks/useInterval.ts": {
12901
- "bytes": 2709,
12901
+ "bytes": 2745,
12902
12902
  "imports": [
12903
12903
  {
12904
12904
  "path": "src/types/hooks.ts",
@@ -15799,7 +15799,7 @@
15799
15799
  "bytesInOutput": 1389
15800
15800
  },
15801
15801
  "src/devvit/internals/blocks/useInterval.ts": {
15802
- "bytesInOutput": 2359
15802
+ "bytesInOutput": 2395
15803
15803
  },
15804
15804
  "src/devvit/internals/blocks/useState.ts": {
15805
15805
  "bytesInOutput": 1356
@@ -16000,7 +16000,7 @@
16000
16000
  "bytesInOutput": 370
16001
16001
  }
16002
16002
  },
16003
- "bytes": 16194968
16003
+ "bytes": 16195080
16004
16004
  }
16005
16005
  }
16006
16006
  }
package/meta.min.json CHANGED
@@ -2760,7 +2760,7 @@
2760
2760
  "format": "esm"
2761
2761
  },
2762
2762
  "src/devvit/internals/blocks/useInterval.ts": {
2763
- "bytes": 2709,
2763
+ "bytes": 2745,
2764
2764
  "imports": [
2765
2765
  {
2766
2766
  "path": "src/types/hooks.ts",
@@ -4639,7 +4639,7 @@
4639
4639
  "imports": [],
4640
4640
  "exports": [],
4641
4641
  "inputs": {},
4642
- "bytes": 1223118
4642
+ "bytes": 1223176
4643
4643
  },
4644
4644
  "dist/public-api.min.js": {
4645
4645
  "imports": [
@@ -5241,7 +5241,7 @@
5241
5241
  "bytesInOutput": 488
5242
5242
  },
5243
5243
  "src/devvit/internals/blocks/useInterval.ts": {
5244
- "bytesInOutput": 968
5244
+ "bytesInOutput": 983
5245
5245
  },
5246
5246
  "src/devvit/internals/blocks/useState.ts": {
5247
5247
  "bytesInOutput": 502
@@ -5433,7 +5433,7 @@
5433
5433
  "bytesInOutput": 178
5434
5434
  }
5435
5435
  },
5436
- "bytes": 261098
5436
+ "bytes": 261113
5437
5437
  }
5438
5438
  }
5439
5439
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.10.20-next-2024-05-02-51d46528d.0",
3
+ "version": "0.10.20-next-2024-05-02-e85877b9a.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "types": "./index.d.ts",
32
32
  "dependencies": {
33
- "@devvit/protos": "0.10.20-next-2024-05-02-51d46528d.0",
34
- "@devvit/runtimes": "0.10.20-next-2024-05-02-51d46528d.0",
35
- "@devvit/shared-types": "0.10.20-next-2024-05-02-51d46528d.0",
33
+ "@devvit/protos": "0.10.20-next-2024-05-02-e85877b9a.0",
34
+ "@devvit/runtimes": "0.10.20-next-2024-05-02-e85877b9a.0",
35
+ "@devvit/shared-types": "0.10.20-next-2024-05-02-e85877b9a.0",
36
36
  "base64-js": "1.5.1",
37
37
  "clone-deep": "4.0.1",
38
38
  "core-js": "3.27.2",
@@ -42,7 +42,7 @@
42
42
  "@ampproject/filesize": "4.3.0",
43
43
  "@devvit/eslint-config": "0.10.19",
44
44
  "@devvit/repo-tools": "0.10.19",
45
- "@devvit/tsconfig": "0.10.20-next-2024-05-02-51d46528d.0",
45
+ "@devvit/tsconfig": "0.10.20-next-2024-05-02-e85877b9a.0",
46
46
  "@microsoft/api-extractor": "7.41.0",
47
47
  "@reddit/faceplate-ui": "11.1.0",
48
48
  "@types/clone-deep": "4.0.1",
@@ -65,5 +65,5 @@
65
65
  }
66
66
  },
67
67
  "source": "./src/index.ts",
68
- "gitHead": "96e2215ad761da02203f971e2a72334f78dfdb8c"
68
+ "gitHead": "54151364d7966e2bc9a1e0a20b593a298cfa759a"
69
69
  }