diff --git a/frontend-html/README.md b/frontend-html/README.md index d73df2fb47..47f6b7a01c 100644 --- a/frontend-html/README.md +++ b/frontend-html/README.md @@ -62,4 +62,14 @@ Try running it with the browser path specified: ```BROWSER=/usr/bin/firefox yarn start``` +#### Debug Constants +You can set these constants in the browser's local storage: + +`debugNoPolling` will prevent work queue refresh from running + +`debugNoPolling_notificationBox` will prevent notifications refresh from running + +`debugNoPolling_chatrooms` will prevent chat refresh from running + + diff --git a/frontend-html/src/model/entities/FormScreenLifecycle/FormScreenLifecycle.tsx b/frontend-html/src/model/entities/FormScreenLifecycle/FormScreenLifecycle.tsx index 46a04d50e1..473632131d 100644 --- a/frontend-html/src/model/entities/FormScreenLifecycle/FormScreenLifecycle.tsx +++ b/frontend-html/src/model/entities/FormScreenLifecycle/FormScreenLifecycle.tsx @@ -724,7 +724,6 @@ export class FormScreenLifecycle02 implements IFormScreenLifecycle02 { yield*this.readFirstChunkOfRows({ rootDataView: rootDataView, preloadIsDirty: preloadIsDirty, - runChangeRowReaction: true }); } } @@ -879,7 +878,6 @@ export class FormScreenLifecycle02 implements IFormScreenLifecycle02 { *readFirstChunkOfRows(args: { rootDataView: IDataView, - runChangeRowReaction: boolean preloadIsDirty?: boolean }): any { const rootDataView = args.rootDataView; @@ -922,9 +920,7 @@ export class FormScreenLifecycle02 implements IFormScreenLifecycle02 { } rootDataView.restoreViewState(); } finally { - if(args.runChangeRowReaction){ - rootDataView.lifecycle.startSelectedRowReaction(!args.preloadIsDirty); - } + rootDataView.lifecycle.startSelectedRowReaction(!args.preloadIsDirty); this.monitor.inFlow--; } } @@ -968,8 +964,7 @@ export class FormScreenLifecycle02 implements IFormScreenLifecycle02 { do { this._readFirstChunkOfRowsScheduled = false; yield*this.readFirstChunkOfRows({ - rootDataView: rootDataView, - runChangeRowReaction: false + rootDataView: rootDataView }); } while (this._readFirstChunkOfRowsScheduled); } finally {