MCPcopy Index your code
hub / github.com/plotly/dash / handlePaths

Function handlePaths

dash/dash-renderer/src/observers/executedCallbacks.ts:144–189  ·  view source on GitHub ↗
(
                            children: any,
                            oldChildren: any,
                            oldChildrenPath: any[],
                            filterRoot: any = false
                        )

Source from the content-addressed store, hash-verified

142 );
143
144 const handlePaths = (
145 children: any,
146 oldChildren: any,
147 oldChildrenPath: any[],
148 filterRoot: any = false
149 ) => {
150 const oPaths = getState().paths;
151 const paths = computePaths(
152 children,
153 oldChildrenPath,
154 oPaths
155 );
156 dispatch(setPaths(paths));
157
158 // Get callbacks for new layout (w/ execution group)
159 requestedCallbacks = concat(
160 requestedCallbacks,
161 getLayoutCallbacks(graphs, paths, children, {
162 chunkPath: oldChildrenPath,
163 filterRoot
164 }).map(rcb => ({
165 ...rcb,
166 predecessors
167 }))
168 );
169
170 // Wildcard callbacks with array inputs (ALL / ALLSMALLER) need to trigger
171 // even due to the deletion of components
172 requestedCallbacks = concat(
173 requestedCallbacks,
174 getLayoutCallbacks(
175 graphs,
176 oldPaths,
177 oldChildren,
178 {
179 removedArrayInputsOnly: true,
180 newPaths: paths,
181 chunkPath: oldChildrenPath,
182 filterRoot
183 }
184 ).map(rcb => ({
185 ...rcb,
186 predecessors
187 }))
188 );
189 };
190
191 let recomputed = false;
192

Callers 1

Calls 3

computePathsFunction · 0.90
getLayoutCallbacksFunction · 0.90
getStateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…