Skip to content

Commit 972281d

Browse files
committed
Move requestDependencies
1 parent f237a11 commit 972281d

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

dash/dash-renderer/src/actions/callbacks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ import {notifyObservers, updateProps} from './index';
4242
import {CallbackJobPayload} from '../reducers/callbackJobs';
4343
import {handlePatch, isPatch} from './patch';
4444
import {getPath} from './paths';
45-
import {requestDependencies} from './dependencies_ts';
45+
46+
import {requestDependencies} from './requestDependencies';
4647

4748
export const addBlockedCallbacks = createAction<IBlockedCallback[]>(
4849
CallbackActionType.AddBlocked

dash/dash-renderer/src/actions/dependencies_ts.ts

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,20 @@ import {
1818
} from 'ramda';
1919
import {
2020
ICallback,
21-
ICallbackProperty,
2221
ICallbackDefinition,
23-
ILayoutCallbackProperty,
24-
ICallbackTemplate
22+
ICallbackProperty,
23+
ICallbackTemplate,
24+
ILayoutCallbackProperty
2525
} from '../types/callbacks';
2626
import {
2727
addAllResolvedFromOutputs,
28-
splitIdAndProp,
29-
stringifyId,
3028
getUnfilteredLayoutCallbacks,
29+
idMatch,
3130
isMultiValued,
32-
idMatch
31+
splitIdAndProp,
32+
stringifyId
3333
} from './dependencies';
3434
import {getPath} from './paths';
35-
import apiThunk from './api';
36-
import {setGraphs} from './index';
37-
import {batch} from 'react-redux';
3835

3936
export const DIRECT = 2;
4037
export const INDIRECT = 1;
@@ -448,14 +445,3 @@ export function resolveDeps(
448445
return result;
449446
};
450447
}
451-
452-
export function requestDependencies() {
453-
return (dispatch: any) => {
454-
batch(() => {
455-
dispatch(setGraphs({}));
456-
dispatch(
457-
apiThunk('_dash-dependencies', 'GET', 'dependenciesRequest')
458-
);
459-
});
460-
};
461-
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import {batch} from 'react-redux';
2+
import {setGraphs} from './index';
3+
import apiThunk from './api';
4+
5+
export function requestDependencies() {
6+
return (dispatch: any) => {
7+
batch(() => {
8+
dispatch(setGraphs({}));
9+
dispatch(
10+
apiThunk('_dash-dependencies', 'GET', 'dependenciesRequest')
11+
);
12+
});
13+
};
14+
}

0 commit comments

Comments
 (0)