Update worksheet when react state updates

Posted by: 16pa1a0576 on 23 April 2021, 1:54 am EST

    • Post Options:
    • Link

    Posted 23 April 2021, 1:54 am EST

    Hi,

    I am using SpreadJs-React library. I have worksheet tag configured, dataSource parameter with react state object as,

    const [data, setData] = useState()



    The issue is, when ever state changes, it is not rendering in worksheet.

    Looking forward for the reply.

    Thanks.

  • Posted 25 April 2021, 10:06 pm EST

    Hi,

    We are sorry but we are unable to replicate this issue at our end please make sure you have called the repaint method after updating the state. Please refer to the following sample that demonstrates the same and if the issue persists please modify the sample to replicate the issue so that we could investigate it further and assist you accordingly.

    sample: https://codesandbox.io/s/interesting-cohen-g47e0

    Regards

    Avinash

Need extra support?

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

Learn More

Forum Channels