You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
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
constaddItems=$kv.addItems({fn: (draft)=>item})
The text was updated successfully, but these errors were encountered:
Case
Currently, if you want to add more items to KV, you have to call
addItem
X times or useaddItemTree
which isn't always the case 'cause you don't always have a tree-like structureDue to the nature of
sample
, callingaddItem
X times happens in separate ticks which triggers X updates with halfway updated stateSolution
Like
$kv.addItem
, add$kv.addItems
tooThe text was updated successfully, but these errors were encountered: