Posted 15 September 2021, 6:08 pm EST
Our web application is powered by reactjs.
The issue with our SpreadJS react integration is that it does not appear to let us use react’s declarative approach for rendering data as table of rows and columns like you can do with
, ,| .
We’ve tried two approaches for using SpreadJS in declarative way within our ReactJS: (b) React-reconciler with calling imperatively SpreadJS instance in commitMount/commitUpdate phases. In this current implementation, the data appears in the right cell most of the time but spreadJS renders multiple times and sometimes the rows (especially when there are 10 or more) appear out of order. In both these implementations of SpreadJS, we’ve sruggled to ensure that the underlying spreadjs instance does not ‘go away’ while we are imperatively setting data to it. Is it possible to supply data to SpreadJS as data source while consuming data from end-user/backend through declarative components , , ? Would employing a ‘Data provider/source approach’ where we would supply formulas to SpreadJS through data source while consuming data from end-user/backend through declarative components , , work? View the video where on the page Avg Market Rents the average appears as the first row, it’s not until I refresh the page two times that it appears on the bottom row where it is supposed to be. screencast-hff.vizibly.io-2021.09.15-15_03_27.zipscreencast-hff.vizibly.io-2021.09.15-15_03_27.zip |
