Skip to content

UILD-842: Move settings application to within click handler - #440

Merged
zepheiryan merged 2 commits into
masterfrom
UILD-842
Aug 26, 2026
Merged

UILD-842: Move settings application to within click handler#440
zepheiryan merged 2 commits into
masterfrom
UILD-842

Conversation

@zepheiryan

@zepheiryan zepheiryan commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Purpose

Fix problems on editor load where authority value labels are not displayed at all.

Approach

Settings application was previously implemented through useEffect, which ended up causing an unwanted run on page load, before all stores were fully settled, that caused complex values to be blanked on re-render since they hadn't yet been set in the user values service.

Move settings application directly to the site where it's changed by the user instead, avoiding the on load problems.

Also remove an unnecessary key.

Refs

https://folio-org.atlassian.net/browse/UILD-842

Screenshots

Creator's name now renders again correctly:
Screenshot 2026-08-19 at 17 50 20

…f a generic useEffect, avoid side effects of running it on load before stores are fully caught up
@zepheiryan
zepheiryan requested a review from a team as a code owner August 20, 2026 00:52
@zepheiryan zepheiryan added the ai label Aug 20, 2026
@zepheiryan
zepheiryan requested a review from a team August 20, 2026 00:52
@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

Jest Unit Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit 9eb68fb. ± Comparison against base commit db3f230.

♻️ This comment has been updated with latest results.

@sonarqubecloud

Copy link
Copy Markdown

@zepheiryan
zepheiryan merged commit 00a0b2d into master Aug 26, 2026
16 checks passed
@zepheiryan
zepheiryan deleted the UILD-842 branch August 26, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants