We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dc22dc commit 63f14afCopy full SHA for 63f14af
dash/testing/dash_page.py
@@ -36,6 +36,20 @@ def redux_state_paths(self):
36
def redux_state_rqs(self):
37
return self.driver.execute_script(
38
"""
39
+
40
+ // Check for legacy `pendingCallbacks` store prop (compatibility for Dash matrix testing)
41
+ var pendingCallbacks = window.store.getState().pendingCallbacks;
42
+ if (pendingCallbacks) {
43
+ return pendingCallbacks.map(function(cb) {
44
+ var out = {};
45
+ for (var key in cb) {
46
+ if (typeof cb[key] !== 'function') { out[key] = cb[key]; }
47
+ }
48
+ return out;
49
+ });
50
51
52
+ // Otherwise, use the new `callbacks` store prop
53
var callbacksState = Object.assign({}, window.store.getState().callbacks);
54
delete callbacksState.stored;
55
delete callbacksState.completed;
0 commit comments