Skip to content

Commit d2d6d94

Browse files
committed
HPCC-34790 ECL Watch v9 contents in file view not updated when file is rewritten
fixes an issue in ECL Watch v9, when viewing the contents of a logical file, the user cannot see the most up-to-date data as they can when using the v5 UI Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com>
1 parent c3397c2 commit d2d6d94

3 files changed

Lines changed: 249 additions & 38 deletions

File tree

esp/src/package-lock.json

Lines changed: 241 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esp/src/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
"@hpcc-js/chart": "3.3.9",
5353
"@hpcc-js/codemirror": "3.4.1",
5454
"@hpcc-js/common": "3.3.9",
55-
"@hpcc-js/comms": "3.7.7",
55+
"@hpcc-js/comms": "3.8.0",
5656
"@hpcc-js/dataflow": "3.0.1",
57-
"@hpcc-js/eclwatch": "3.2.20",
57+
"@hpcc-js/eclwatch": "3.3.0",
5858
"@hpcc-js/graph": "3.3.12",
5959
"@hpcc-js/html": "3.2.10",
6060
"@hpcc-js/layout": "3.2.10",

esp/src/src-react/components/Result.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,12 @@ export const Result: React.FunctionComponent<ResultProps> = ({
329329
{
330330
key: "refresh", text: nlsHPCC.Refresh, iconProps: { iconName: "Refresh" },
331331
onClick: () => {
332-
resultTable.reset();
333-
resultTable.render(() => setResult(resultTable.calcResult()));
332+
resultTable.bypassCache(true);
333+
try {
334+
resultTable.render(() => setResult(resultTable.calcResult()));
335+
} finally {
336+
resultTable.bypassCache(false);
337+
}
334338
}
335339
},
336340
{ key: "divider_1", itemType: ContextualMenuItemType.Divider, onRender: () => <ShortVerticalDivider /> },

0 commit comments

Comments
 (0)