(
children: any,
oldChildren: any,
oldChildrenPath: any[],
filterRoot: any = false
)
| 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 |
no test coverage detected
searching dependent graphs…