score:0
i had a similar issue, i fixed it by making sure that the measure
method is called after the row contents are fully loaded.
<cellmeasurer
cache={this._cache}
columnindex={0}
key={datakey}
parent={parent}
rowindex={rowindex}>
{({measure, registerchild}) => (
<detalles rowdata={rowdata} color={color} measure={measure}/>
)}
</cellmeasurer>
function detalles(props) {
return (
<div
classname={styles.tablecolumn}
style={{
display: "flex",
flexdirection: "column",
backgroundcolor: props.color
}}>
{
props.rowdata.detalles.map((q) => {
return <div>{q}</div>
})
}
</div>
);
useeffect(() => {
props.measure();
});
}
Source: stackoverflow.com
Related Query
- React Virtualized CellMeasurer with List gives random height intermittently
- React Virtualized table with CellMeasurer is not calculating the height properly
- How to troubleshoot row height adjustment with expandable rows with react virtualized list?
- React Virtualized - Changing the height of a List Row post render
- get a random item from a list of items with property by React js
- React Virtualized List with AutoSizer - vertical scrollbar does not appear
- ESLint with React gives `no-unused-vars` errors
- Big list performance with React
- How to animate element height in React with ReactCSSTransitionGroup?
- React performance: rendering big list with PureRenderMixin
- Filtering A List With React
- React Virtualized Table - performance issues with input element in ~8 columns table
- How to add new elements without re-rendering whole list with React
- Symlinking react modules with npm link for local development gives error
- React Material-Ui Sticky Table Header with Dynamic Height
- Performance when highlighting item in list with React
- How to get the marquee effect with list view in react native?
- React list with no keys
- Test React element height with Jest
- How to add components to list dynamically in React with no redundant render?
- Filtering object list with React
- React Router v4 with babel gives error with multiple routes
- React native buld failed with the following message Failed to list versions for com.facebook.react:react-native
- Updating list with state React
- How to target single item in list with onClick when mapping JSON array in React
- Render a simple list in React with promises
- Testing React component with Jest gives 'Cannot find module' error
- Rendering List with Fetch in React
- Implement 'toggle class' functionality on a list of elements with React
- Is it possible to create a generic React list component with typescript?
More Query from same tag
- Event composition in react.js
- TypeScript pass an array as argument
- Axios 404 error, two different localhosts
- How to use react-responsive as a const
- React Button Click Event Not working correctly
- get lat and lng from array of objects on React
- SetInterval on mount for a set duration
- Type 'string' is not assignable to type for react-router-dom Link Component
- React setState with arrays , how to auto create an array id without construct
- How to change a object state inside a map function
- React.js How to loop through multiple API data arrays and add data to table
- State being overridden in react
- TypeScript: having trouble typing useReducer with generics
- Passing data from Main layout to subpages in Nextjs
- Differentiate client-side redirection vs 302 redirection on React app
- How can i convert this JSON object into this format?
- Error while updating redux state using immutability-helper
- How to pass Material UI data to Formik?
- Tool to return HTML as string after injecting variables
- How to make loading screen in ReactJS web app like splash in React Native
- Jest "No tests found" after update VSCode to 1.32.1
- ReactJs pass value to function in another js file
- Calling inside a method another method ReactJS
- 405 - Uncaught (in promise) Error: Request failed with status code 405
- How to use React within Rails using coffee?
- React-PDF Slow Performance with large PDF
- How to search in a json array, and return the result as I type in the input
- How to set a variable in a parent component from a child component
- Bottom navigation disappears when route clicked
- How to mention users using @ in django