Skip to content

Update all packages and remove unused#524

Merged
GailMelanie merged 16 commits intodevfrom
dependabot/npm_and_yarn/dev/yarn-minor-patch-a4be08a061
Feb 3, 2026
Merged

Update all packages and remove unused#524
GailMelanie merged 16 commits intodevfrom
dependabot/npm_and_yarn/dev/yarn-minor-patch-a4be08a061

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 23, 2026

Dependency and Configuration Updates:

  • Upgraded numerous dependencies and devDependencies in package.json to their latest versions for improved security, compatibility, and features.

  • Added a resolutions block to force the undici package version, likely to address a specific compatibility or security issue.

  • Updated the import path for AppRouterCacheProvider in layout.tsx to match the new MUI version. (src/app/[locale]/layout.tsxL2-R2)

  • Removed the eslint build ignore option from next.config.ts, since it is no longer supported.

Bumps the yarn-minor-patch group with 28 updates:

| Package | From | To |
| --- | --- | --- |
| [@apollo/client](https://github.com/apollographql/apollo-client) | `4.0.11` | `4.1.2` |
| [@mui/icons-material](https://github.com/mui/material-ui/tree/HEAD/packages/mui-icons-material) | `7.3.6` | `7.3.7` |
| [@mui/material](https://github.com/mui/material-ui/tree/HEAD/packages/mui-material) | `7.3.6` | `7.3.7` |
| [@mui/material-nextjs](https://github.com/mui/material-ui/tree/HEAD/packages/mui-material-nextjs) | `7.3.6` | `7.3.7` |
| [@mui/styled-engine](https://github.com/mui/material-ui/tree/HEAD/packages/mui-styled-engine) | `7.3.6` | `7.3.7` |
| [@mui/system](https://github.com/mui/material-ui/tree/HEAD/packages/mui-system) | `7.3.6` | `7.3.7` |
| [@mui/x-date-pickers](https://github.com/mui/mui-x/tree/HEAD/packages/x-date-pickers) | `8.22.0` | `8.26.0` |
| [@prisma/adapter-better-sqlite3](https://github.com/prisma/prisma/tree/HEAD/packages/adapter-better-sqlite3) | `7.2.0` | `7.3.0` |
| [@prisma/client](https://github.com/prisma/prisma/tree/HEAD/packages/client) | `7.2.0` | `7.3.0` |
| [lodash](https://github.com/lodash/lodash) | `4.17.21` | `4.17.23` |
| [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) | `4.17.21` | `4.17.23` |
| [next](https://github.com/vercel/next.js) | `16.1.1` | `16.1.4` |
| [next-intl](https://github.com/amannn/next-intl) | `4.6.0` | `4.7.0` |
| [pino](https://github.com/pinojs/pino) | `10.1.0` | `10.3.0` |
| [react-hook-form](https://github.com/react-hook-form/react-hook-form) | `7.68.0` | `7.71.1` |
| [recharts](https://github.com/recharts/recharts) | `3.4.0` | `3.7.0` |
| [@next/eslint-plugin-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-plugin-next) | `16.1.1` | `16.1.4` |
| [@swc/core](https://github.com/swc-project/swc) | `1.15.5` | `1.15.10` |
| [@testing-library/react](https://github.com/testing-library/react-testing-library) | `16.3.1` | `16.3.2` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `25.0.9` | `25.0.10` |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) | `19.2.7` | `19.2.9` |
| [cypress](https://github.com/cypress-io/cypress) | `15.8.1` | `15.9.0` |
| [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) | `16.1.1` | `16.1.4` |
| [eslint-plugin-cypress](https://github.com/cypress-io/eslint-plugin-cypress) | `5.2.0` | `5.2.1` |
| [eslint-plugin-formatjs](https://github.com/formatjs/formatjs) | `6.0.9` | `6.1.1` |
| [prettier](https://github.com/prettier/prettier) | `3.7.4` | `3.8.1` |
| [prisma](https://github.com/prisma/prisma/tree/HEAD/packages/cli) | `7.2.0` | `7.3.0` |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `8.51.0` | `8.53.1` |


Updates `@apollo/client` from 4.0.11 to 4.1.2
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-client/compare/@apollo/client@4.0.11...@apollo/client@4.1.2)

Updates `@mui/icons-material` from 7.3.6 to 7.3.7
- [Release notes](https://github.com/mui/material-ui/releases)
- [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui/material-ui/commits/v7.3.7/packages/mui-icons-material)

Updates `@mui/material` from 7.3.6 to 7.3.7
- [Release notes](https://github.com/mui/material-ui/releases)
- [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui/material-ui/commits/v7.3.7/packages/mui-material)

Updates `@mui/material-nextjs` from 7.3.6 to 7.3.7
- [Release notes](https://github.com/mui/material-ui/releases)
- [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui/material-ui/commits/v7.3.7/packages/mui-material-nextjs)

Updates `@mui/styled-engine` from 7.3.6 to 7.3.7
- [Release notes](https://github.com/mui/material-ui/releases)
- [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui/material-ui/commits/v7.3.7/packages/mui-styled-engine)

Updates `@mui/system` from 7.3.6 to 7.3.7
- [Release notes](https://github.com/mui/material-ui/releases)
- [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui/material-ui/commits/v7.3.7/packages/mui-system)

Updates `@mui/x-date-pickers` from 8.22.0 to 8.26.0
- [Release notes](https://github.com/mui/mui-x/releases)
- [Changelog](https://github.com/mui/mui-x/blob/v8.26.0/CHANGELOG.md)
- [Commits](https://github.com/mui/mui-x/commits/v8.26.0/packages/x-date-pickers)

Updates `@prisma/adapter-better-sqlite3` from 7.2.0 to 7.3.0
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/7.3.0/packages/adapter-better-sqlite3)

Updates `@prisma/client` from 7.2.0 to 7.3.0
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/7.3.0/packages/client)

Updates `lodash` from 4.17.21 to 4.17.23
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.21...4.17.23)

Updates `@types/lodash` from 4.17.21 to 4.17.23
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

Updates `next` from 16.1.1 to 16.1.4
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](vercel/next.js@v16.1.1...v16.1.4)

Updates `next-intl` from 4.6.0 to 4.7.0
- [Release notes](https://github.com/amannn/next-intl/releases)
- [Changelog](https://github.com/amannn/next-intl/blob/main/CHANGELOG.md)
- [Commits](amannn/next-intl@v4.6.0...v4.7.0)

Updates `pino` from 10.1.0 to 10.3.0
- [Release notes](https://github.com/pinojs/pino/releases)
- [Commits](pinojs/pino@v10.1.0...v10.3.0)

Updates `react-hook-form` from 7.68.0 to 7.71.1
- [Release notes](https://github.com/react-hook-form/react-hook-form/releases)
- [Changelog](https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md)
- [Commits](react-hook-form/react-hook-form@v7.68.0...v7.71.1)

Updates `recharts` from 3.4.0 to 3.7.0
- [Release notes](https://github.com/recharts/recharts/releases)
- [Changelog](https://github.com/recharts/recharts/blob/main/CHANGELOG.md)
- [Commits](recharts/recharts@v3.4.0...v3.7.0)

Updates `@next/eslint-plugin-next` from 16.1.1 to 16.1.4
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/commits/v16.1.4/packages/eslint-plugin-next)

Updates `@swc/core` from 1.15.5 to 1.15.10
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](swc-project/swc@v1.15.5...v1.15.10)

Updates `@testing-library/react` from 16.3.1 to 16.3.2
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](testing-library/react-testing-library@v16.3.1...v16.3.2)

Updates `@types/lodash` from 4.17.21 to 4.17.23
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

Updates `@types/node` from 25.0.9 to 25.0.10
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@types/react` from 19.2.7 to 19.2.9
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `cypress` from 15.8.1 to 15.9.0
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md)
- [Commits](cypress-io/cypress@v15.8.1...v15.9.0)

Updates `eslint-config-next` from 16.1.1 to 16.1.4
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/commits/v16.1.4/packages/eslint-config-next)

Updates `eslint-plugin-cypress` from 5.2.0 to 5.2.1
- [Release notes](https://github.com/cypress-io/eslint-plugin-cypress/releases)
- [Commits](cypress-io/eslint-plugin-cypress@v5.2.0...v5.2.1)

Updates `eslint-plugin-formatjs` from 6.0.9 to 6.1.1
- [Release notes](https://github.com/formatjs/formatjs/releases)
- [Commits](https://github.com/formatjs/formatjs/compare/eslint-plugin-formatjs@6.0.9...eslint-plugin-formatjs@6.1.1)

Updates `prettier` from 3.7.4 to 3.8.1
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@3.7.4...3.8.1)

Updates `prisma` from 7.2.0 to 7.3.0
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/7.3.0/packages/cli)

Updates `typescript-eslint` from 8.51.0 to 8.53.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.53.1/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: "@apollo/client"
  dependency-version: 4.1.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: "@mui/icons-material"
  dependency-version: 7.3.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@mui/material"
  dependency-version: 7.3.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@mui/material-nextjs"
  dependency-version: 7.3.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@mui/styled-engine"
  dependency-version: 7.3.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@mui/system"
  dependency-version: 7.3.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@mui/x-date-pickers"
  dependency-version: 8.26.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: "@prisma/adapter-better-sqlite3"
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: "@prisma/client"
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@types/lodash"
  dependency-version: 4.17.23
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: next
  dependency-version: 16.1.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: next-intl
  dependency-version: 4.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: pino
  dependency-version: 10.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: react-hook-form
  dependency-version: 7.71.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: recharts
  dependency-version: 3.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: "@next/eslint-plugin-next"
  dependency-version: 16.1.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@swc/core"
  dependency-version: 1.15.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@testing-library/react"
  dependency-version: 16.3.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@types/lodash"
  dependency-version: 4.17.23
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@types/node"
  dependency-version: 25.0.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: "@types/react"
  dependency-version: 19.2.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: cypress
  dependency-version: 15.9.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: eslint-config-next
  dependency-version: 16.1.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: eslint-plugin-cypress
  dependency-version: 5.2.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: yarn-minor-patch
- dependency-name: eslint-plugin-formatjs
  dependency-version: 6.1.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: prettier
  dependency-version: 3.8.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: prisma
  dependency-version: 7.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
- dependency-name: typescript-eslint
  dependency-version: 8.53.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: yarn-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jan 23, 2026
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jan 23, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s dependency set (yarn minor/patch group) and includes a broad set of related refactors/adjustments across hooks and UI components.

Changes:

  • Bumps 28 dependencies including Next.js, MUI, Prisma, Apollo, Recharts, Cypress, ESLint/Prettier, etc.
  • Refactors multiple components/hooks to avoid prop mutation and reduce derived state (e.g., using useMemo, extracting tooltip components, moving styled components out of render).
  • Adjusts notification handling to support stable keys via notification IDs.

Reviewed changes

Copilot reviewed 37 out of 38 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/lib/services/NotificationService.ts Auto-assigns notification IDs for uniqueness.
src/lib/i18n/Internationalization.tsx Derives date-fns adapter locale via useMemo instead of state/effect.
src/lib/hooks/UseAuth.ts Derives bearer token and computed session fields via useMemo (avoids mutating session).
src/lib/hooks/UseAsyncEffect.ts Changes abort-status handling to use a ref.
src/components/contexts/NotificationContext.tsx Extends Notification type with optional id.
src/components/basics/NotificationOutlet.tsx Uses notification IDs / counters for stable Snackbar keying and open-state handling.
src/components/basics/Buttons.tsx Moves styled component creation out of render; uses sx for size-specific styling.
src/components/authentication/InvalidSessionHandler.tsx Tracks previous session via useRef instead of state.
src/app/[locale]/viewer/_components/submodel/time-series/TimeSeriesLineDiagram.tsx Extracts custom tooltip into a separate component.
src/app/[locale]/viewer/_components/submodel/time-series/TimeSeriesCustomTooltipProps.tsx Adds extracted time-series tooltip component.
src/app/[locale]/viewer/_components/submodel/time-series/InternalTimeSeries.tsx Minor effect-flow adjustment and lint suppression.
src/app/[locale]/viewer/_components/submodel/carbon-footprint/visualization-components/CustomTooltipWithUnit.tsx Adds reusable tooltip-with-unit component.
src/app/[locale]/viewer/_components/submodel/carbon-footprint/visualization-components/CO2EDistributionDiagrams/CO2EDistributionBarchart.tsx Switches to shared tooltip component.
src/app/[locale]/viewer/_components/submodel-elements/marking-components/SingleMarkingsComponent.tsx Moves styled components out of render; parameterizes via props.
src/app/[locale]/viewer/_components/submodel-elements/document-component/useDocumentVersionData.tsx Computes file view model via useMemo instead of state/effect.
src/app/[locale]/viewer/_components/submodel-elements/document-component/DocumentClassification.tsx Computes classification data via useMemo instead of state/effect.
src/app/[locale]/templates/_components/template-edit/edit-components/collection-mapping-info/CollectionMappingInfoEditComponent.tsx Avoids mutating props.data when editing qualifiers.
src/app/[locale]/templates/_components/blueprint-edit/edit-components/property/data-specific/BooleanPropertyEditComponent.tsx Adds lint suppression for state updates inside effect.
src/app/[locale]/templates/_components/blueprint-edit/edit-components/property/PropertyEditComponent.tsx Removes mirrored local state and writes updates directly to props.
src/app/[locale]/templates/_components/blueprint-edit/edit-components/multiplicity/MultiplicityEditComponent.tsx Avoids mutating qualifiers array; updates immutably.
src/app/[locale]/templates/_components/blueprint-edit/edit-components/multi-lang/MultiLangEditComponent.tsx Removes local mirrored state; updates language entries immutably.
src/app/[locale]/templates/_components/blueprint-edit/edit-components/mapping-info/MappingInfoEditComponent.tsx Avoids mutating qualifiers array; updates immutably.
src/app/[locale]/templates/_components/blueprint-edit/edit-components/file/FileEditComponent.tsx Removes mirrored local state and writes updates directly to props.
src/app/[locale]/templates/_components/blueprint-edit/edit-components/SubmodelEditComponent.tsx Avoids mutating qualifiers; updates via immutable mapping.
src/app/[locale]/templates/_components/blueprint-edit/BlueprintEditFields.tsx Removes local templatePart mirror; uses props.blueprintPart directly.
src/app/[locale]/settings/_components/role-settings/target-information/TargetInformationForm.tsx Initializes state from RHF getValues instead of mount-time effect.
src/app/[locale]/settings/_components/role-settings/RuleDialog.tsx Refactors dialog content into extracted components.
src/app/[locale]/settings/_components/id-settings/IdSettingEntry.tsx Uses props.isLoading directly instead of derived local state.
src/app/[locale]/product/_components/ProductViewer.tsx Uses useMemo for filtering submodels instead of state/effect.
src/app/[locale]/product/_components/ProductOverviewCard.tsx Reworks overview data preparation to memoized computation.
src/app/[locale]/product/[base64AasId]/page.tsx Fixes control flow so decode errors show an error UI instead of returning inside try-block.
src/app/[locale]/list/_components/AasListDataWrapper.tsx Extracts list content rendering into its own component and reorders helper definitions.
src/app/[locale]/list/_components/AasListContent.tsx Adds extracted list content component.
src/app/[locale]/layout.tsx Updates MUI Next.js cache provider import to v16 App Router entry.
src/app/[locale]/_components/QrScanner.tsx Adds lint suppression for Cypress callback injection on window.
package.json Bumps dependencies/devDependencies and adjusts scripts (e.g., dev).
next.config.ts Removes eslint.ignoreDuringBuilds configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@GailMelanie GailMelanie requested a review from Copilot February 2, 2026 09:55
@GailMelanie GailMelanie changed the title chore(deps): bump the yarn-minor-patch group with 28 updates Update all packages and remove unused Feb 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 37 out of 38 changed files in this pull request and generated 9 comments.

Comments suppressed due to low confidence (2)

src/components/basics/NotificationOutlet.tsx:16

  • State updates are being triggered during render (if (notification !== lastNotification) { setOpen(...); ... }). This can cause React warnings and render loops. Move this synchronization into a useEffect that runs when notification changes (and compute the key there if needed), rather than calling setState while rendering.
    src/lib/hooks/UseAsyncEffect.ts:15
  • Switching the abort status to a single useRef object changes semantics: when dependencies change, the cleanup sets aborted = true and the next effect immediately sets it back to false, so an older in-flight async operation may no longer observe that it was aborted. Use a per-effect status object created inside useEffect (or a monotonically increasing token) so each effect invocation has an independent abort flag.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 37 out of 38 changed files in this pull request and generated 6 comments.

Comments suppressed due to low confidence (1)

src/app/[locale]/viewer/_components/submodel-elements/document-component/DocumentClassification.tsx:28

  • useMemo is using props.classificationData.map(...) purely for side-effects (pushing into classifications). This is misleading and makes it easy to miss that the returned array is unused. Use forEach (or map + filter) to make the intent clear.
    const classificationData = useMemo(() => {
        const classifications: DocumentClassification[] = [];
        props.classificationData.map((classificationElement) => {
            const classId = findSubmodelElementBySemanticIdsOrIdShort(classificationElement.value, 'ClassId', [
                DocumentSpecificSemanticId.ClassId,

@GailMelanie GailMelanie merged commit 2bf60a5 into dev Feb 3, 2026
14 checks passed
@GailMelanie GailMelanie deleted the dependabot/npm_and_yarn/dev/yarn-minor-patch-a4be08a061 branch February 3, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants