Skip to content

Lucid UI 0.3.9

Choose a tag to compare

@thisisezra thisisezra released this 14 Oct 01:43
· 10 commits to main since this release

Lists that update in place.

npm i @lucidui-dev/core@0.3.9
ul(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.