Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/brown-experts-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-virtual-masonry': minor
---

mv virtual to peer, fix lane caching (virtaul#1115)
5 changes: 5 additions & 0 deletions .changeset/cool-clocks-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-virtual-masonry': patch
---

disable react compiler for useWindowVirtualizer
6 changes: 5 additions & 1 deletion .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"plugins": ["react", "unicorn", "typescript", "oxc", "react-hooks"],
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "unicorn", "typescript", "oxc", "react-perf"],
"env": {
"browser": true
},
"rules": {
"correctness": "error",
"suspicious": "error",
Expand Down
2 changes: 1 addition & 1 deletion docs/contents/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { HomePage } from 'vocs/components';
<HomePage.Tagline>
Modern Masonry Layout with ease, powered by @tanstack/virtual.
</HomePage.Tagline>
<HomePage.InstallPackage name="react-virtual-masonry" type="add" />
<HomePage.InstallPackage name="react-virtual-masonry @tanstack/react-virtual" type="add" />
<HomePage.Buttons>
<HomePage.Button href="/docs" variant="accent">
Get started
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@changesets/cli": "^2.29.8",
"husky": "^9.1.7",
"lint-staged": "^15.5.2",
"oxlint": "^0.16.12",
"oxlint": "^1.39.0",
"prettier": "^3.7.4",
"taze": "^19.9.2",
"turbo": "^2.7.3"
Expand Down
3 changes: 2 additions & 1 deletion package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"build": "tsdown"
},
"dependencies": {
"@tanstack/react-virtual": "3.13.12",
"react-compiler-runtime": "^1.0.0"
},
"devDependencies": {
"@rollup/plugin-babel": "^6.1.0",
"@tanstack/react-virtual": "^3.13.24",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"babel-plugin-react-compiler": "^1.0.0",
Expand All @@ -53,6 +53,7 @@
"typescript": "catalog:"
},
"peerDependencies": {
"@tanstack/react-virtual": ">=3.13.24",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
}
Expand Down
3 changes: 3 additions & 0 deletions package/src/Masonry/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export function Masonry<Data = unknown>({
estimateSize,
overscan = DEFAULT_OVERSCAN,
}: Props<Data>) {
'use no memo';

const { getResponsiveValue } = useResponsiveValue<number>();

const columnsCount = getResponsiveValue(columnsCountBreakPoints, DEFAULT_COLUMNS_COUNT);
Expand All @@ -42,6 +44,7 @@ export function Masonry<Data = unknown>({
lanes: columnsCount,
scrollMargin: containerRef.current?.offsetTop ?? 0,
gap: gutter,
laneAssignmentMode: 'measured',
});

return (
Expand Down
101 changes: 53 additions & 48 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.