Kudzu 0.7.4 - Memoized collection pipelines
Kudzu 0.7.4 lets ordinary React/Vite source retain analyzable collection work inside useMemo while reusing the existing keyed-list selector and DOM identity model.
New in 0.7.4
- Inline
useMemocallbacks accept collection pipelines rooted in direct local array state. - Existing
filter, direct-propertyflatMap, andArray.fromselector analysis is reused without a browser memo cache. - Intermediate
.map()calls lower to the existingArray.from(source, mapper)selector operation. - Memo locals are removed from emitted server modules after their uses are inlined.
- State updates preserve keyed row DOM identity as selected values change.
- Collection callbacks must be synchronous arrows with plain
(item)or(item, index)parameters. - The React/Vite fixture verifies
filter + map, selector generation, browser updates, and retained row identity.
Boundary
Memoized collections use the existing statically analyzable collection subset. Arbitrary callbacks, external captures, asynchronous transforms, getters, and general-purpose memo caching remain unsupported. React, a VDOM, hydration, and a retained browser component tree are not emitted.
Upgrade
npm install @kudzujs/core@^0.7.4