Skip to content

Commit fc9bd2a

Browse files
committed
add fixme
1 parent d14a3d1 commit fc9bd2a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/CompositionBlocks.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,14 @@ export default function CompositionBlocks({ flatJSON, onChange }) {
8686
}, []);
8787

8888
useEffect(() => {
89+
console.log('noticed change to flatJSON prop')
90+
if (ws.current) {
91+
const beforeUpdate = Blockly.serialization.workspaces.save(ws.current)
92+
console.log('beforeUpdate', beforeUpdate)
93+
console.log('flatJSON', flatJSON)
8994

95+
// FIXME: notice that the measures in beforeUpdate and those in flatJSON differ, so indeed call changeBlocks
96+
}
9097
// if (ws.current && renders < 10) { //FIXME this should be on
9198
// setRenders(renders+1);
9299
// changeBlocks(ws.current, flatJSON);

0 commit comments

Comments
 (0)