diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e4373f90..c52dc458 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -57,8 +57,10 @@ jobs: uses: actions/cache@v4 with: path: apps/readest-app/.next/cache - key: nextjs-${{ runner.os }}-${{ hashFiles('apps/readest-app/package.json', 'pnpm-lock.yaml') }} - restore-keys: nextjs-${{ runner.os }}- + key: nextjs-${{ matrix.config.platform }}-${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + nextjs-${{ matrix.config.platform }}-${{ github.sha }}- + nextjs-${{ matrix.config.platform }}- - name: install Dependencies working-directory: apps/readest-app diff --git a/apps/readest-app/src/app/reader/components/sidebar/TOCView.tsx b/apps/readest-app/src/app/reader/components/sidebar/TOCView.tsx index 51d4c567..c0f17bdc 100644 --- a/apps/readest-app/src/app/reader/components/sidebar/TOCView.tsx +++ b/apps/readest-app/src/app/reader/components/sidebar/TOCView.tsx @@ -182,6 +182,7 @@ const TOCView: React.FC<{ (activeItem as HTMLElement).setAttribute('aria-current', 'page'); } } + // es-lint-disable-next-line react-hooks/exhaustive-deps }, [activeHref]); const virtualItemSize = useMemo(() => {