Dynamic column list in React

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

    • Post Options:
    • Link

    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.

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

    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?

  • Posted 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

    Regards

    Avinash

  • Posted 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”.

  • Posted 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.

    Regards

    Avinash

  • Posted 8 February 2021, 11:21 pm EST

    Thanks. Is there anywhere I can track progress of this issue - roadmap, publicly facing issue tracker?

  • Posted 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.

    Regards,

  • Posted 20 March 2021, 1:18 am EST

    Hi Pawel,

    The issue has been fixed in our latest 14.0.9 build. Please update to the latest build and let us know if the issue still persists for you.

    Regards

    Avinash

Need extra support?

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

Learn More

Forum Channels