@octanejs/tanstack-devtools 0.0.63 → 0.0.65

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
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@octanejs/tanstack-devtools",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
+ "octane": {
7
+ "strong": [
8
+ "src"
9
+ ]
10
+ },
6
11
  "engines": {
7
12
  "node": ">=22.22.2"
8
13
  },
@@ -34,17 +39,17 @@
34
39
  "@tanstack/devtools": "0.14.2"
35
40
  },
36
41
  "peerDependencies": {
37
- "octane": "^0.16.0"
42
+ "octane": "^0.18.0"
38
43
  },
39
44
  "devDependencies": {
40
- "@octanejs/testing-library": "0.1.66",
45
+ "@octanejs/testing-library": "0.1.70",
41
46
  "@tanstack/react-devtools": "0.10.12",
42
47
  "@testing-library/jest-dom": "^6.9.1",
43
48
  "@tsrx/react": "^0.4.5",
44
49
  "@types/react": "19.2.17",
45
50
  "@types/react-dom": "19.2.3",
46
51
  "esbuild": "^0.28.1",
47
- "octane": "0.16.0",
52
+ "octane": "0.18.0",
48
53
  "react": "19.2.7",
49
54
  "react-dom": "19.2.7",
50
55
  "vitest": "^4.1.10"
package/src/devtools.tsrx CHANGED
@@ -12,7 +12,7 @@
12
12
  // - The framework-agnostic `@tanstack/devtools` core (TanStackDevtoolsCore, Solid) is
13
13
  // reused UNCHANGED, exactly as the React binding does.
14
14
  // - `ref` is the normal React-19-style ref prop; native events; no synthetic layer.
15
- import { createPortal, useEffect, useMemo, useRef, useState } from 'octane';
15
+ import { createPortal, useEffect, useLazyRef, useMemo, useRef, useState } from 'octane';
16
16
  import { TanStackDevtoolsCore } from '@tanstack/devtools';
17
17
  import type {
18
18
  ClientEventBusConfig,
@@ -194,7 +194,7 @@ export const TanStackDevtools = ({
194
194
  }) ?? [],
195
195
  );
196
196
 
197
- const [devtools] = useState(() => {
197
+ const devtoolsRef = useLazyRef(() => {
198
198
  const { customTrigger, ...coreConfig } = config || {};
199
199
  return new TanStackDevtoolsCore({
200
200
  config: {
@@ -212,12 +212,13 @@ export const TanStackDevtools = ({
212
212
  });
213
213
 
214
214
  useEffect(() => {
215
- devtools.setConfig({
215
+ devtoolsRef.current.setConfig({
216
216
  plugins: pluginsMap,
217
217
  });
218
218
  });
219
219
 
220
220
  useEffect(() => {
221
+ const devtools = devtoolsRef.current;
221
222
  if (devToolRef.current) {
222
223
  devtools.mount(devToolRef.current);
223
224
  }