Autodesk / Autodesk/react-base-table
rowRenderer invalid hooks error
Open
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 170
- PR merge metrics
- No merged PRs in 30d
Description
I used rowRenderer for my custom row component and ı need to use useEffect hooks inside this component but ı got Invalid hook call error.
```jsx
...
{({ width, height }) => (
}
rowRenderer={EventRow}
rowHeight={84}
/>
)}
...
```
if ı use the hooks inside ***EventRow*** component ı got ***react.development.js:1476 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component.*** error.
***EventRow*** is a functional component.
Contributor guide
Assessment
This issue has not been assessed yet.