Skip to content

Commit d514570

Browse files
committed
adjustments based on feedback
1 parent 680ad95 commit d514570

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

dash/dash-renderer/src/actions/dependencies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ export function computeGraphs(dependencies, dispatchError, config) {
958958
}
959959
});
960960
const end = performance.now();
961-
window.dash_clientside.callbackGraphTime = (end - start).toFixed(2);
961+
window.dash_component_api.callbackGraphTime = (end - start).toFixed(2);
962962
return finalGraphs;
963963
}
964964

tests/integration/renderer/test_benchmarking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,13 @@ def test_compute_graph_timing(dash_duo, dev_tools, store):
111111
dash_duo.start_server(app, **dev_tools)
112112
times = []
113113
for _ in range(10):
114+
dash_duo.wait_for_element("#input")
114115
wait.until(
115116
lambda: dash_duo.find_element("#output").text.strip() != "", timeout=4
116117
)
117118
graph_compute_time = float(
118119
dash_duo.driver.execute_script(
119-
"return window.dash_clientside.callbackGraphTime"
120+
"return window.dash_component_api.callbackGraphTime"
120121
)
121122
)
122123
times.append(graph_compute_time)

0 commit comments

Comments
 (0)