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
Describe the bug
When using typescript and a custom List, Typescript throws an error and says it expects an HTMLDivElement when you try to pass the ref to anything else, for example an unordered list.
I can't seem to use this, at least in the version "react-virtuoso": "^4.10.4".
I'm using VirtuosoGrid by the way.
I get an error "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."
Describe the bug
When using typescript and a custom List, Typescript throws an error and says it expects an HTMLDivElement when you try to pass the ref to anything else, for example an unordered list.
Reproduction
https://codesandbox.io/s/virtualized-custom-list-and-item-type-issue-g3irvh?file=/App.tsx:415-433
To Reproduce
Steps to reproduce the behavior:
Components["List"]
following the example on https://virtuoso.dev/customize-structure/Expected behavior
The ref is able to be passed to any html element.
Screenshots
The text was updated successfully, but these errors were encountered: