Skip to content

Commit 44cd099

Browse files
committed
tanstack migration init
1 parent 5abf28c commit 44cd099

37 files changed

+480
-1405
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@
6464
"nx": {
6565
"includedScripts": ["test:unused", "check", "test:deps"]
6666
},
67-
"overrides": {
68-
"react-router-devtools": "workspace:*"
69-
},
7067
"pnpm": {
71-
"onlyBuiltDependencies": ["esbuild", "msw"]
68+
"onlyBuiltDependencies": ["esbuild", "msw"],
69+
"overrides": {
70+
"react-router-devtools": "workspace:*"
71+
}
7272
},
7373
"private": true
7474
}

packages/react-router-devtools/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-router-devtools",
33
"description": "Devtools for React Router - debug, trace, find hydration errors, catch bugs and inspect server/client data with react-router-devtools",
44
"author": "Alem Tuzlak",
5-
"version": "5.1.6",
5+
"version": "5.1.3",
66
"license": "MIT",
77
"keywords": [
88
"react-router",
@@ -59,9 +59,7 @@
5959
"require": "./dist/client.css"
6060
}
6161
},
62-
"files": [
63-
"dist"
64-
],
62+
"files": ["dist"],
6563
"repository": {
6664
"type": "git",
6765
"url": "git+https://github.com/forge-42/react-router-devtools.git"
@@ -108,9 +106,9 @@
108106
"vite": ">=5.0.0 || >=6.0.0"
109107
},
110108
"devDependencies": {
111-
"@react-router/dev": "^7.5.3",
112-
"@react-router/node": "^7.5.3",
113-
"@react-router/serve": "7.1.4",
109+
"@react-router/dev": "7.5.3",
110+
"@react-router/node": "7.5.3",
111+
"@react-router/serve": "7.5.3",
114112
"@testing-library/dom": "^10.4.0",
115113
"@testing-library/react": "16.2.0",
116114
"@types/babel__core": "^7.20.5",
@@ -142,6 +140,8 @@
142140
"@babel/types": "^7.26.10",
143141
"@radix-ui/react-accordion": "^1.2.2",
144142
"@radix-ui/react-select": "^2.1.5",
143+
"@tanstack/devtools-vite": "^0.3.8",
144+
"@tanstack/react-devtools": "^0.7.7",
145145
"beautify": "^0.0.8",
146146
"bippy": "^0.3.7",
147147
"chalk": "5.4.1",

packages/react-router-devtools/src/client/components/Breakpoints.tsx

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/react-router-devtools/src/client/components/LiveUrls.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

packages/react-router-devtools/src/client/components/Trigger.tsx

Lines changed: 0 additions & 60 deletions
This file was deleted.

packages/react-router-devtools/src/client/context/RDTContext.tsx

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { Dispatch } from "react"
22
import type React from "react"
33
import { createContext, useEffect, useMemo, useReducer } from "react"
44
import { bigIntReplacer } from "../../shared/bigint-util.js"
5-
import { useRemoveBody } from "../hooks/detached/useRemoveBody.js"
65
import { checkIsDetached, checkIsDetachedOwner, checkIsDetachedWindow } from "../utils/detached.js"
76
import { tryParseJson } from "../utils/sanitize.js"
87
import {
@@ -85,8 +84,6 @@ export const getExistingStateFromStorage = (config?: RdtClientConfig & { editorN
8584
...config,
8685
...settings,
8786
editorName: config?.editorName ?? initialState.settings.editorName,
88-
liveUrls: config?.liveUrls ?? initialState.settings.liveUrls,
89-
breakpoints: config?.breakpoints ?? initialState.settings.breakpoints,
9087
},
9188
detachedWindow,
9289
detachedWindowOwner,
@@ -96,34 +93,16 @@ export const getExistingStateFromStorage = (config?: RdtClientConfig & { editorN
9693

9794
export type RdtClientConfig = Pick<
9895
ReactRouterDevtoolsState["settings"],
99-
| "defaultOpen"
100-
| "breakpoints"
101-
| "showBreakpointIndicator"
102-
| "showRouteBoundariesOn"
103-
| "expansionLevel"
104-
| "liveUrls"
105-
| "position"
106-
| "height"
107-
| "minHeight"
108-
| "maxHeight"
109-
| "hideUntilHover"
110-
| "panelLocation"
111-
| "requireUrlFlag"
112-
| "openHotkey"
113-
| "urlFlag"
114-
| "enableInspector"
115-
| "routeBoundaryGradient"
96+
"showRouteBoundariesOn" | "expansionLevel" | "routeBoundaryGradient"
11697
>
11798

11899
export const RDTContextProvider = ({ children, config }: ContextProps) => {
119100
const [state, dispatch] = useReducer(rdtReducer, getExistingStateFromStorage(config))
120101
// biome-ignore lint/correctness/useExhaustiveDependencies: investigate
121102
const value = useMemo(() => ({ state, dispatch }), [state, dispatch])
122103

123-
useRemoveBody(state)
124-
125104
useEffect(() => {
126-
const { settings, detachedWindow, detachedWindowOwner, ...rest } = state
105+
const { settings, ...rest } = state
127106
// Store user settings for dev tools into local storage
128107
setStorageItem(REACT_ROUTER_DEV_TOOLS_SETTINGS, JSON.stringify(settings))
129108
// Store general state into local storage

0 commit comments

Comments
 (0)