We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e8e4f0 commit 862ba37Copy full SHA for 862ba37
rust/cubesql/cubesql/egraph-debug-template/src/index.js
@@ -162,23 +162,14 @@ async function layout(
162
if (abortSignal.aborted) {
163
return;
164
}
165
- window.requestAnimationFrame(() => {
+ // TODO investigate why setTimeout is necessary, something related to ReactFlow state and setNodes/setEdges probably
166
+ setTimeout(() => {
167
168
169
170
- if (navHistory?.length) {
171
- setTimeout(() => {
172
- if (abortSignal.aborted) {
173
- return;
174
- }
175
-
176
- zoomTo(fitView, navHistory);
177
- }, 500);
178
- } else {
179
- fitView();
180
181
- });
+ zoomTo(fitView, navHistory);
+ }, 500);
182
return flatChildren;
183
184
0 commit comments