Dynamic column list in React

Posted by: pawel on 5 February 2021, 4:14 am EST

  • Posted 5 February 2021, 4:14 am EST

    I'm trying to run a simple React + Redux sheet implementation. It seems that when I change the list of columns spreadjs breaks.

    <Worksheet name={"X"} dataSource={this.props.data}>

    this.props.columnDefinitions is initially empty ([])
    On second render it has data. This seems to be a really simple case with Redux - what is it that I'm doing wrong?
  • Replied 7 February 2021, 8:17 pm EST

    Hi Pawel,

    We are unable to replicate the issue at our end. could you please provide a small sample that replicates the issue? so that we could investigate it further and assist you accordingly. You may also modify the following sample that we used for testing.

    sample: https://codesandbox.io/s/compassionate-rgb-ijrgo

  • Replied 7 February 2021, 9:21 pm EST

    Sure thing, here you go: https://codesandbox.io/s/rough-breeze-x9wxc?file=/src/index.js

    After I click on "Add columns" I get "Cannot read property 'sheet' of undefined".
  • Replied 8 February 2021, 4:55 pm EST

    Hi Pawel,

    Thanks for the sample. We are able to replicate the issue at our end hence we have forwarded it to the concerned team for further investigation. We will update you regarding this issue once we have any information. The internal ID for this issue will be SJS-7592.

  • Replied 8 February 2021, 11:21 pm EST

    Thanks. Is there anywhere I can track progress of this issue - roadmap, publicly facing issue tracker?
  • Replied 9 February 2021, 12:07 am EST

    Hi Pawel,

    Since thease are an internal private issues you could not be able to see the progress. publicly. We keep track of thease escalated cases, and you will get notified in this case when there is any information available for this issue.

Need extra support?

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

Learn More

Forum Channels