Is it possible to completely remove second argument 'source' from public api of applyChange utility?
Even it is not really used (and docs clearly state this), function checks that passed source is 'truthy',
so a have to use following pattern:
changes.forEach(change => applyChange(
INITIAL_STATE,
true/*stated as not used in docs, but have to be truthy to pass internal checks*/,
change
))
https://github.com/flitbit/diff/blob/c97fb9ce8840283c78f1d70b6420d11291435e82/index.js#L260
Hello! First of all thanks for a nice tool.
Is it possible to completely remove second argument 'source' from public api of applyChange utility? Even it is not really used (and docs clearly state this), function checks that passed source is 'truthy', so a have to use following pattern: