From: v79.x β v80.0.1 | Released: 2026-01-27 | Difficulty: π’ LOW
Hoist React v80 is primarily a CSS-focused release, refactoring FormField CSS classes to follow
BEM conventions and completing the loadModel β loadObserver rename started in v79.
The most significant app-level impacts are:
- FormField CSS class BEM refactoring β element classes use
__separator, modifier classes use--separator XH.appLoadModelβXH.appLoadObserverβ completing the v79 rename- Removed instance getters β
Store.isStore,View.isView,Filter.isFilterreplaced by static typeguards - jQuery resolution required β apps must add a
"jquery": "3.x"resolution to prevent a transitive dependency break --xh-font-familyapplies to inputs β may require wider date inputs in some cases
Before starting, ensure:
- Running hoist-react v79.x
Bump hoist-react and add a jquery resolution to prevent the golden-layout transitive
dependency from pulling in jQuery 4.x (which breaks the library).
File: package.json
Before:
"@xh/hoist": "~79.0.0"After:
"@xh/hoist": "~80.0.0"Add to resolutions (create the section if it doesn't exist):
"resolutions": {
"jquery": "3.x"
}Run yarn install or npm install after making these changes.
FormField CSS classes have been refactored to follow BEM conventions. Element sub-components use
__ (double underscore) and modifier/state classes use -- (double hyphen).
Find affected files:
grep -r "xh-form-field-" client-app/src/Watch for SCSS nesting patterns. The grep above will catch direct references like
.xh-form-field-disabled, but it will not catch SCSS&nesting that compiles to the same old-style selector. For example:.xh-form-field { &-disabled { opacity: 0.6; } }compiles to
.xh-form-field-disabledβ the old class name β without ever containing the literal stringxh-form-field-disabledin source. Run this additional search to find these cases:grep -rn "&-disabled\|&-readonly\|&-required\|&-invalid\|&-inline\|&-minimal\|&-label\|&-inner\|&-error\|&-info" \ client-app/src/ --include="*.scss"Then check each match to see if it appears inside a
.xh-form-fieldrule. If so, update the nesting to use the new BEM separators:// Before β compiles to .xh-form-field-disabled (broken) .xh-form-field { &-disabled { opacity: 0.6; } } // After β compiles to .xh-form-field--disabled (correct) .xh-form-field { &--disabled { opacity: 0.6; } }
| Before | After |
|---|---|
xh-form-field-label |
xh-form-field__label |
xh-form-field-inner |
xh-form-field__inner |
xh-form-field-info |
xh-form-field__inner__info-msg |
xh-form-field-error-msg |
xh-form-field__inner__validation-msg |
xh-form-field-error-tooltip |
xh-form-field__validation-tooltip |
xh-form-field-required-indicator |
xh-form-field__required-indicator |
xh-form-field-readonly-display |
xh-form-field__readonly-display |
xh-form-field-inner--flex |
xh-form-field__inner--flex |
xh-form-field-inner--block |
xh-form-field__inner--block |
| Before | After |
|---|---|
xh-form-field-required |
xh-form-field--required |
xh-form-field-inline |
xh-form-field--inline |
xh-form-field-minimal |
xh-form-field--minimal |
xh-form-field-readonly |
xh-form-field--readonly |
xh-form-field-disabled |
xh-form-field--disabled |
xh-form-field-invalid |
xh-form-field--invalid |
xh-form-field-{inputType} |
xh-form-field--{inputType} |
Example β the commonly targeted label class:
Before:
.xh-form-field .xh-form-field-label {
font-size: var(--xh-font-size-large-px);
}After:
.xh-form-field .xh-form-field__label {
font-size: var(--xh-font-size-large-px);
}Consider using CSS variables instead: v80 introduces new CSS variables for common FormField label customizations. These provide a cleaner alternative to class-based overrides:
.my-form-container {
--xh-form-field-label-text-transform: uppercase;
--xh-form-field-label-font-size: 0.8em;
--xh-form-field-label-color: var(--xh-text-color-muted);
--xh-form-field-label-font-weight: bold;
}See styles/vars.scss for the full list of --xh-form-field-* CSS variables.
Completing the loadModel β loadObserver rename started in v79. The prior getter
XH.appLoadModel remains as a deprecated alias scheduled for removal in v82.
Find affected files:
grep -r "appLoadModel" client-app/src/Before:
mask({bind: XH.appLoadModel})After:
mask({bind: XH.appLoadObserver})Note: If you didn't update model.loadModel references in v79, do so now β see the
v79 upgrade notes.
The following instance getters have been removed:
| Removed | Replacement |
|---|---|
store.isStore |
Store.isStore(store) |
view.isView |
View.isView(view) |
filter.isFilter |
Filter.isFilter(filter) |
Find affected files:
grep -r "\.isStore\|\.isView\|\.isFilter" client-app/src/Before:
if (source.isStore) { ... }After:
import {Store} from '@xh/hoist/data';
if (Store.isStore(source)) { ... }The --xh-font-family CSS variable now applies to input elements (previously they used the
browser default font). This brings inputs in line with the rest of the app but may cause some
tightly-sized inputs (e.g. DateInput with narrow explicit width) to clip content.
If needed, customize the input font separately:
:root {
--xh-input-font-family: 'Your Preferred Font', sans-serif;
}Or widen affected inputs to accommodate the (slightly wider) Inter font with tabular numbers.
After completing all steps:
-
yarn install/npm installcompletes without errors -
yarn lint/npm run lintpasses (or only pre-existing warnings remain) -
npx tsc --noEmitpasses - Application loads without console errors
- Form fields render correctly β labels, validation messages, and readonly displays
- No old FormField CSS classes remain:
grep -r "xh-form-field-[a-z]" client-app/src/ | grep -v "xh-form-field--\|xh-form-field__" - No SCSS nesting producing old classes β check
&-disabled,&-readonly, etc. inside.xh-form-fieldrules - Date inputs and other tightly-sized inputs are not clipping
- No deprecated patterns remain:
grep -r "appLoadModel\|\.isStore\b\|\.isView\b\|\.isFilter\b" client-app/src/
- Toolbox on GitHub β canonical example of a Hoist app