mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 11:44:08 +00:00
fix: avoid reconnecting to dependencies after cleanup (#14)
* fix: cancel reconnection when unsubscribing * test: remove print * feat: allow factory to return nil * perf: use `next` iteration
This commit is contained in:
parent
62be3e496d
commit
c6762a6525
14 changed files with 87 additions and 63 deletions
|
|
@ -8,7 +8,7 @@ local function isUnsafeTable(object: { [any]: any })
|
|||
local objectSize = 0
|
||||
|
||||
-- All keys must have the same type
|
||||
for key in object do
|
||||
for key in next, object do
|
||||
local currentType = type(key)
|
||||
|
||||
if not keyType and SAFE_KEYS[currentType] then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue