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
Feels wrong to merge null and undefined values. undefined is smth that doesn't exist, null on the other hand is smth that exists, but doesn't have value.
This makes write(identifier, undefined) same as write(identifier, null). Latter is definitely user wanting to null the value. First doesn't make sense to call deliberately, rather a handy filter for undefined values - if undefined is passed then do nothing.
Another implication: default values are ignored. Scheduling engine passes quite a few undefined values to engine, hoping that default value will be taken. Like lag. But it doesn't happen.
canonic-epicure
changed the title
undefined always turns to null
Ignore the write with proposedValue === undefinedMay 25, 2020
Feels wrong to merge
null
andundefined
values.undefined
is smth that doesn't exist,null
on the other hand is smth that exists, but doesn't have value.This makes
write(identifier, undefined)
same aswrite(identifier, null)
. Latter is definitely user wanting to null the value. First doesn't make sense to call deliberately, rather a handy filter for undefined values - if undefined is passed then do nothing.chronograph/src/chrono/Transaction.ts
Line 455 in 0db8d13
The text was updated successfully, but these errors were encountered: