Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIIN-3160: Decrease the amount of re-renders of ConsortialHoldings component and fix accordion states between instances #2716

Merged
merged 7 commits into from
Jan 28, 2025
Next Next commit
UIIN-3160: Decrease the amount of rerenders in ConsortialHoldings com…
…ponent
OleksandrHladchenko1 committed Jan 20, 2025

Verified

This commit was signed with the committer’s verified signature.
azjezz Saif Eddin Gmati
commit d6e4e54b186d55fe5eeef080c699d47394d63661
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@
* Display `Shared` facet when user opens "Move holdings/items to another instance" modal. Refs UIIN-3198.
* ECS - Allow 'Move holdings/items to another instance' if instance is shared. Refs UIIN-3188.
* Fix '"location name" is undefined' error when trying to open instance details on ECS. Fixes UIIN-3196.
* Decrease the amount of rerenders in `ConsortialHoldings` component. Fixes UIIN-3196.

## [12.0.8](https://github.com/folio-org/ui-inventory/tree/v12.0.8) (2024-12-24)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.7...v12.0.8)
3 changes: 1 addition & 2 deletions src/Instance/InstanceDetails/InstanceDetails.js
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@ import React, {
import { useIntl, FormattedMessage } from 'react-intl';
import { useLocation } from 'react-router-dom';
import PropTypes from 'prop-types';
import { uniqueId } from 'lodash';

import {
AppIcon,
@@ -212,7 +211,7 @@ const InstanceDetails = forwardRef(({

{isConsortialHoldingsVisible && (
<ConsortialHoldings
key={uniqueId(instance?.id)}
key={instance?.id}
instance={instance}
prevInstanceId={prevInstanceId.current}
updatePrevInstanceId={updatePrevInstanceId}