Autodesk / Autodesk/react-base-table

rowRenderer invalid hooks error

Open
#312 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.