chore: update use update reason hook messages

This commit is contained in:
EnixCoda 2020-10-28 18:15:01 +08:00
parent 59fffaf004
commit 76e6d7c7f4
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -23,11 +23,11 @@ export function useUpdateReason<P /* extends {
}
if (output.length) {
console.log(`Updated due to`)
console.log(`[Updated Reasons]`)
for (const record of output) {
console.log(...record.map(r => (typeof r === 'function' ? '[fn]' : r)))
}
console.log(`;`)
console.log(`;;`)
}
lastPropsRef.current = props