Skip to content

Commit

Permalink
vite 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
AlemTuzlak committed Feb 3, 2025
1 parent 9c6b166 commit 35ca67f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/external/react-json-view/utils/useHighlight.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { useMemo, useRef, useEffect } from 'react';

function usePrevious<T>(value: T) {
const ref = useRef<T>(undefined);
// @ts-ignore
const ref = useRef<T>();
useEffect(() => {
ref.current = value;
});
Expand Down
2 changes: 0 additions & 2 deletions src/vite/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
if (routine === "request-event") {
unusedEvents.set(parsedData.id + parsedData.startTime, parsedData)
for (const client of server.hot.channels) {
// @ts-ignore - Fix this
client.send("request-event", JSON.stringify(parsedData))
}

Expand All @@ -174,7 +173,6 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
}
}
for (const client of server.hot.channels) {
// @ts-ignore - Fix this
client.send("route-info", JSON.stringify({ type, data }))
}
})
Expand Down

0 comments on commit 35ca67f

Please sign in to comment.