-
-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recalculate method? #31
Comments
I have the same use case. Added PR #55 to manually trigger measure when a row is changing height. |
It seems internally it re-calculates on every const [ignored, forceUpdate] = useReducer(x => x + 1, 0);
const rowVirtualizer = useVirtual({
...
estimateSize: React.useCallback(() => 100, [ignored]);
});
and then call |
* feat: Add measure method, issue #31 * refactor: measure method Reduce roundtrips * Fix: virtualItems should not depend on state * Fix: remove eslint-disable-next-line react-hooks/exhaustive-deps Co-authored-by: David Wincent <[email protected]> Co-authored-by: David Wincent <[email protected]>
Hello. Do you use index.html?
|
This issue has been automatically closed due to inactivity. If this issue represented an unfulfilled feature request, please start a new discussion instead of an issue. If this issue needs more attention despite its age, please comment to reopen, or open a new issue with updated information. Thanks! |
Any progress on a fix here? |
@austincondiff |
Hi, thank you so much for the great project.
I was wondering if there was a recalculate/refresh list method for the dynamic lists? It would be to support updating the height of the row once edited.
The text was updated successfully, but these errors were encountered: