From: v77.x β v78.1.4 | Released: 2025-11-21 | Difficulty: π TRIVIAL
Hoist React v78 is a small release with only one breaking change to grid column state management.
The most significant app-level impact is:
GridModel.setColumnStatebehavior change β the method now replaces column state wholesale instead of patching. Apps relying on the previous patching behavior must switch toGridModel.applyColumnStateChanges.
Before starting, ensure:
- Running hoist-react v77.x
Bump hoist-react to v78.
File: package.json
Before:
"@xh/hoist": "~77.1.0"After:
"@xh/hoist": "~78.0.0"GridModel.setColumnState no longer patches existing column state β it replaces it wholesale.
If your app passes a partial array of column state expecting it to be merged with existing state,
switch to GridModel.applyColumnStateChanges instead.
Find affected files:
grep -r "setColumnState" client-app/src/Before:
// Partial state for two columns - previously patched into the existing state
gridModel.setColumnState([
{colId: 'name', hidden: false},
{colId: 'status', hidden: true, width: 120}
]);After:
// Use applyColumnStateChanges to apply targeted changes to particular columns
gridModel.applyColumnStateChanges([
{colId: 'name', hidden: false},
{colId: 'status', hidden: true, width: 120}
]);Note that setColumnState now takes a full ColumnState[] (colId + width + hidden, plus
optional pinned and manuallySized), while applyColumnStateChanges continues to accept a
Partial<ColumnState>[], requiring only colId plus the properties to change.
If your app always passes a complete array of column state to setColumnState - e.g. a snapshot
read back from gridModel.columnState - no change is needed.
Note: GridModel.cleanColumnState is now private. This is not expected to impact applications.
After completing all steps:
-
yarn install/npm installcompletes without errors -
npx tsc --noEmitpasses - Application loads without console errors
- Grids with persisted or programmatically managed column state function correctly
- Column visibility, ordering, and sizing work as expected
- Toolbox on GitHub β canonical example of a Hoist app