mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 19:54:09 +00:00
refactor: polish code, logo
This commit is contained in:
parent
18723c1377
commit
e7a1f5d235
7 changed files with 14 additions and 19 deletions
|
|
@ -55,9 +55,10 @@ local function split<Item, Key>(
|
|||
|
||||
for key, item in previousItems do
|
||||
local id = if keyExtractor then keyExtractor(item) else key
|
||||
local atom = atoms[id]
|
||||
|
||||
if itemsByKeys[id] == nil then
|
||||
atoms[id]:unmount()
|
||||
if itemsByKeys[id] == nil and atom then
|
||||
atom:unmount()
|
||||
atoms[id] = nil
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue