Closed nowiko closed 2 years ago
Hmm I've never composed the two components like this. Would you mind reproducing a basic example in CodeSandbox?
@jaredLunde sure, here is the first example - it renders two identical cats grids as list items, and I am able to scroll to second grid via simple state update. Here is the link to the advanced example, based on useScrollToIndex
which using hooks - link , please note that it might kill browser, as there is some kind of memory leak occurs.
Please let me know, if I should provide some additional details.
As this issue is not relevant to me, I mark it as closed.
DISCLAIMER: Sorry, this is more question, than a bug. But I wasn't able to found some references regarding my case.
Hello, I am trying to create a list of masonries and I would like to have an ability to scroll to particular list item (which is a masonry), this simple example works pretty well:
but it's not very flexible and I would like to use advanced
useScrollToIndex
hook. I took code from official example, and my code looks like:but in this case, is see tickling image placeholders (they are "jumping" a little bit) for second or two, and then page crashes with the following console output:
Maybe I am missed something, related to the
useScrollToIndex
in the docs, or I am trying to hammer nails with a microscope ? Can somebody help me?Best regards, Viktor.