Posted 7 January 2021, 11:30 pm EST
After creating a new blank file from File tab I'm getting error in the console.Uncaught TypeError: Cannot read property 'calcOnDemand' of null this error is also shown on click outside the spreadsheet.

Forums Home / Spread / SpreadJS Topics
Posted by: wojciech.tartanus on 7 January 2021, 11:30 pm EST
Posted 7 January 2021, 11:30 pm EST
After creating a new blank file from File tab I'm getting error in the console.Replied 10 January 2021, 9:00 pm EST
Hi Wojtek,Replied 10 January 2021, 10:07 pm EST
Hi Avinash,
const [spreadInstance, setSpreadInstance] = useState();
const initSpread({ spread }) => {
setSpreadInstance(spread);
}
<Designer
designerInitialized={initSpread}
/>
Replied 11 January 2021, 7:13 pm EST
Hi Avinash,Replied 11 January 2021, 7:34 pm EST
Hi Wojtek,
workbookInitialized = (e) => {
designer = e.designer;
currentWorkbook = designer.getWorkbook()
};
<Designer designerInitialized={workbookInitialized} />