I have used handsontable
in different commponents but I want to reference sheet from one component to other even if component is unmounted.
Components:
Scenarios Grid
Snapshot Grid
Store (Contaning Hyper formula Instance)
What I have done is stored HyperFormula
Instance globally in zustand
.
now I filled data in Snapshot component. then changed to scenario component and referenced snapshot cell (say =‘Snapshot’!F2). this will get F2 cell of Snapshot.
When I change back to snapshot component and try to change F2 cell it will throw an Exception.
Uncaught TypeError: Cannot read properties of undefined (reading 'validateCell')