Resolves the next canonical entity value from the previous value and an incoming partial/full write.
Contract:
prev
next
undefined
Current canonical value, or undefined if none exists yet.
Incoming write (partial for upsert, full for replace).
Type/id/origin/timestamp metadata for this write.
The merged canonical value to store.
Resolves the next canonical entity value from the previous value and an incoming partial/full write.
Contract:
prevornext(immutability rule).previsundefinedon first write for an id.