From eb93b754474d931b868392b37deee996d1b39515 Mon Sep 17 00:00:00 2001 From: Aaron Boodman Date: Thu, 19 Mar 2026 16:02:56 -1000 Subject: [PATCH 1/2] Upgrade to compatibility with Zero 1.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4836651..e4e92b0 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "vite": "^7.3.1" }, "peerDependencies": { - "@rocicorp/zero": ">=0.25.0 <0.27.0", + "@rocicorp/zero": ">=0.25.0 <2.0.0", "@tanstack/react-virtual": "^3.13.0", "@tanstack/virtual-core": "^3.13.0", "react": "^18.0.0 || ^19.0.0", From db9fcb5c51337792817f7ffec02e1706d413f8de Mon Sep 17 00:00:00 2001 From: Aaron Boodman Date: Thu, 19 Mar 2026 16:04:09 -1000 Subject: [PATCH 2/2] format --- HACKING.md | 3 +-- demo/main.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/HACKING.md b/HACKING.md index ab72cff..982ad44 100644 --- a/HACKING.md +++ b/HACKING.md @@ -4,7 +4,7 @@ There are a number of subtle features that need to be tested manually on each re ## Settling -`zero-virtual` supports the concept of *settling*. The scroller "settles" when there's been no scrolling OR change in the `listContext` (what list is being displayed) for `settleTime` ms. +`zero-virtual` supports the concept of _settling_. The scroller "settles" when there's been no scrolling OR change in the `listContext` (what list is being displayed) for `settleTime` ms. - load the demo app and wait 2s, you should see 'settled' in the console - load the demo app and immediately scroll slowly for 5s, then stop. you should see 'settled' 2s after you stop. @@ -12,7 +12,6 @@ There are a number of subtle features that need to be tested manually on each re - load the demo app and wait 2s. then list queries. you should see one query with `ttl:5m`. - load the demo app and wait 2s. slowly scroll down for 5s then stop. wait for 'settled' in console. list queries. you should see only two queries, both `ttl:5m`. - ## Scroll State zero-virtual has the ability to save and restore scroll state via the `scrollState` and `onScrollStateChange` params. The demo app exercises this feature using the built-in `useHistoryScrollState` hook. diff --git a/demo/main.tsx b/demo/main.tsx index a7df874..03efb9b 100644 --- a/demo/main.tsx +++ b/demo/main.tsx @@ -14,5 +14,5 @@ createRoot(document.getElementById('root')!).render( cacheURL={`${url.protocol}//${url.hostname}:4848`} > - + , );