Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

RFC: $kv.addItems #21

@Kelin2025

Description

@Kelin2025

Case

Currently, if you want to add more items to KV, you have to call addItem X times or use addItemTree which isn't always the case 'cause you don't always have a tree-like structure

Due to the nature of sample, calling addItem X times happens in separate ticks which triggers X updates with halfway updated state

Solution

Like $kv.addItem, add $kv.addItems too

const addItems = $kv.addItems({ fn: (draft) => item })

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions