jaredLunde / jaredLunde/masonic

long grid column while the other 3 columns are drastically shorter

Open
#177 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
63
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I have a masonry with 4 columns with load more button. Initially, it renders elements well (20 elements in 4 columns), but when I click on the load more button, it renders the grid elements weirdly, there is one long column while the other 3 columns are drastically shorter.

The data is given from redux, and may be changed frequently

This is the code:

import { Masonry } from "masonic";

item.id}
items={adsData.data}
columnCount={4}
columnGutter={16}
columnWidth={300}
overscanBy={5}
render={(props) => }
/>

![Image](https://github.com/user-attachments/assets/7cc08dc3-f48e-456f-9dcf-01fda7a38e85)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported four-column Masonry case with Redux-fed adsData.data and the load-more behavior, focusing on the Masonry entry point shown in the issue. Done means newly loaded items preserve a balanced four-column layout rather than accumulating in one column.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.