You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using react-spreadsheet with Next.js and have the following code
import{Spreadsheet}from'react-spreadsheet'constTest=()=>{let_ssdata=useRef([ ...])// initial data that sets up the spreadsheetconst_otherdata={}// that will be retrievedconst[data,setData]=useState[_ssdata.current]// to set the initial dataconstupdateData=async()=>{const_apidata= ... fetch
...
..update_ssdata_ssdata.current= ....setData(_ssdata.current)}return(<><Spreadsheetdata={data}onChange={setData}/><buttononClick={updateData}>Update</button></>}exportdefaultTest
I find that on screen there is no change but when I place the cursor on the given cell its value appears. Are we supposed to do some refresh? Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using react-spreadsheet with Next.js and have the following code
I find that on screen there is no change but when I place the cursor on the given cell its value appears. Are we supposed to do some refresh? Thanks
Beta Was this translation helpful? Give feedback.
All reactions