Closed wiless closed 1 year ago
Seems I fixed it. I was creating nodes in the fulfilled method, which is obviously not expected to be called in order. created corresponding
const runtime = new Runtime();
const main = runtime.module(define, name => {
var node = document.createElement("DIV");
root.appendChild(node);
return {
pending() {
console.log(`${name}: pending`);
},
fulfilled(value) {
// Use the node and customise the render..
console.log(`${name}: fullfilled`, value);
},
rejected(error) {
console.error(`${name}: rejected`, error);
}
};
});
From the given example: this renders all the nodes/cells in the same order as exported from the notebook.
I would like to add all the nodes in a custom observer. I see that the nodes passed on, are not in the same order as in the notebook.
Any suggestion of getting list of nodes in order ?