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
Agreed, object-hash is large enough, but JSON.stringify doesn't preserve object equivalence: for identical objects with different order of their keys, it results in different values.
Another thing to keep note of: very large objects will result in very large keys, whereas a hash function will have the same length regardless of the object sizes.
There are alternatives, smaller and (maybe) faster. Too many actually. But I have not done much research:
There is no obvious reason for using
object-hash
here and it adds 32kb to the bundle size.https://bundlephobia.com/result?p=use-async-resource@2.2.1
The text was updated successfully, but these errors were encountered: