Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(sheet): render after every mutation executed (#3258)
Dushusir91217dc661a5
diff --git a/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.ts b/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.tsindex 0ba104fc28..1d3a407a48 100644--- a/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.ts+++ b/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.ts@@ -309,8 +309,8 @@ export class SheetRenderController extends RxDisposable implements IRenderModulethis._sheetSkeletonManagerService.reCalculate();}- // @Dushusir Prevent mutations that contain onlyLocal in the formula from rendering. This will be removed after the rpc communication issue is fixed.- if (command.type === CommandType.MUTATION && options?.onlyLocal !== true) {+ // All mutations must be executed. Using reCalculate alone will not trigger a refresh.+ if (command.type === CommandType.MUTATION) {this._markUnitDirty(workbookId, command);}}));