Repository navigation
Lucid UI 0.3.9
Lists that update in place.
npm i @lucidui-dev/core@0.3.9ul(For({ each: todos, key: todo => todo.id }, (todo, index, live) =>
li(() => live.value.title)
));- Improved: give
For's row function a third argument, a signal holding the row's latest item, and read from it. When an item is replaced under the same key, the row stays and only what changed updates. Updating every row of a 1,000-row list is about twice as fast. Two-argument rows behave exactly as before. - Changed: the core is 6.2 KB gzipped, up from 6.1 KB.
- Site: the weigh-in builds the same app with React, Tailwind and shadcn/ui and with Lucid UI, and measures both. The benchmark is in bench/compare.