Skip to content

Is it possible to auto determine page size? #567

Discussion options

You must be logged in to vote

I was able to get this working (demo: https://capture.dropbox.com/GSgFws1ULtEjGLC8) using essentially what I mentioned already. I know that react-virtualized's AutoSizer does this (combined with a virtualized list), and I've used that with a table of 30,000 items before without many issues, so technically it could be doable, but shouldn't be the default for sure.

My case will never have more than a couple thousand in the table elements and I doubt people will be resizing constantly so I think it will be fine for my use case.

I can see if I can clean up my code a bit and share later, but if anyone is looking at attempting this, I'm using a combination of useElementSize + passing that ref i…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JoshGlazebrook
Comment options

Answer selected by icflorescu
@icflorescu
Comment options

@icflorescu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants