Destroy() method conflict to Redux in nextjs

Posted by: nguyenvu.work on 21 December 2023, 12:27 am EST

  • Posted 21 December 2023, 12:27 am EST

    • Hi! I’m using SpreadJs and Redux in my NextJs app, I want spreadjs will be destroyed when component was unmounted, so I added this code:
    useEffect(() => {
        spreadDesigner && spreadDesigner.destroy();
     }, []);
    ``
    - spreadDesigner  here is GC.Spread.Sheets.Designer.Designer;
    - But sometime when component was unmounted, I got an error: TypeError: Cannot destructure property 'store' of 't(...)' as it is null.
    -  Above error does not happen with `GC.Spread.Sheets.Workbook.destroy()`;
    - I think there are something which was conflict to Redux inside `destroy` method.!
    - My lib's versions
    + "next": "12.2.5"
    + "react-redux": "8.0.2"
    + "@grapecity/spread-sheets": "16.0.3"
    + "@grapecity/spread-sheets-designer": "16.0.3"
  • Posted 22 December 2023, 9:32 am EST

    Hi,

    I attempted to reproduce the issue but was unsuccessful. It would be really helpful if you could provide a sample and steps to replicates the issue, allowing us to offer more effective assistance.

    Best regards,

    Ankit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels