From 4ed39b897f7137951055fcff7346842c5e2b2ea4 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 3 Mar 2025 20:18:45 +0800 Subject: [PATCH] chore: remove @tanstack/react-virtual patch - Delete the custom patch for @tanstack/react-virtual - Remove patch reference from package.json and pnpm-lock.yaml - Clean up unnecessary patching configuration Signed-off-by: Innei --- package.json | 1 - patches/@tanstack__react-virtual.patch | 14 -------------- pnpm-lock.yaml | 9 +++------ 3 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 patches/@tanstack__react-virtual.patch diff --git a/package.json b/package.json index 9e01d9a43..8f6c09c03 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,6 @@ "daisyui": "patches/daisyui.patch", "jsonpointer": "patches/jsonpointer.patch", "workbox-precaching": "patches/workbox-precaching.patch", - "@tanstack/react-virtual": "patches/@tanstack__react-virtual.patch", "@pengx17/electron-forge-maker-appimage": "patches/@pengx17__electron-forge-maker-appimage.patch", "devlop": "patches/devlop.patch", "@microflash/remark-callout-directives": "patches/@microflash__remark-callout-directives.patch", diff --git a/patches/@tanstack__react-virtual.patch b/patches/@tanstack__react-virtual.patch deleted file mode 100644 index 236fe6eb8..000000000 --- a/patches/@tanstack__react-virtual.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/src/index.tsx b/src/index.tsx -index 3c4a4c987d2a383aba0d9ed85fe3ca1a427c6c39..c6079fd52a038a7bf97720f4ff1d3dcae80a111a 100644 ---- a/src/index.tsx -+++ b/src/index.tsx -@@ -43,6 +43,9 @@ function useVirtualizerBase< - instance.setOptions(resolvedOptions) - - React.useEffect(() => { -+ if (!instance.scrollElement) { -+ instance._willUpdate() -+ } - return instance._didMount() - }, []) - diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cee8f8db9..e8901b18f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,9 +26,6 @@ patchedDependencies: '@pengx17/electron-forge-maker-appimage': hash: 5b5ab1ba36e8c0d7ffee912ebf29c1a18bc101c9c661ceb1bb0bda3deaf4c667 path: patches/@pengx17__electron-forge-maker-appimage.patch - '@tanstack/react-virtual': - hash: 0db4f6dc38be5e94d953967e34f8bdb6a08d3091a8b80ba3964fdd396c73b33c - path: patches/@tanstack__react-virtual.patch daisyui: hash: 3a8f5f7ef76a29355b99bb425ff894e55ccab4335656eedbce80ef95f3e2e3f8 path: patches/daisyui.patch @@ -538,7 +535,7 @@ importers: version: 5.66.7(@tanstack/react-query@5.66.7(react@18.3.1))(react@18.3.1) '@tanstack/react-virtual': specifier: 3.13.0 - version: 3.13.0(patch_hash=0db4f6dc38be5e94d953967e34f8bdb6a08d3091a8b80ba3964fdd396c73b33c)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 3.13.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@use-gesture/react': specifier: 10.3.1 version: 10.3.1(react@18.3.1) @@ -17807,7 +17804,7 @@ snapshots: '@floating-ui/react': 0.26.28(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@react-aria/focus': 3.19.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@react-aria/interactions': 3.23.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@tanstack/react-virtual': 3.13.0(patch_hash=0db4f6dc38be5e94d953967e34f8bdb6a08d3091a8b80ba3964fdd396c73b33c)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@tanstack/react-virtual': 3.13.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) @@ -20414,7 +20411,7 @@ snapshots: '@tanstack/query-core': 5.66.4 react: 18.3.1 - '@tanstack/react-virtual@3.13.0(patch_hash=0db4f6dc38be5e94d953967e34f8bdb6a08d3091a8b80ba3964fdd396c73b33c)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@tanstack/react-virtual@3.13.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@tanstack/virtual-core': 3.13.0 react: 18.3.1