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
The constructor performs a call to an async function and assigns the callback handler to the array, which is suppose to be populated with the "op" object and not the callback function itself.
generateOperation is an async method, but it's called in constructor (which can't be async):
Since it's a callback reference and not the actual operation data, the previous field on second operation becomes a ZoneAwarePromise instead of the operation data.
previous: ZoneAwarePromise
This results in serialization of the state not being correct.
This can probably only be solved by removing this default create operation and requiring the library consumer to call some "create" method instead.
The text was updated successfully, but these errors were encountered:
The constructor performs a call to an async function and assigns the callback handler to the array, which is suppose to be populated with the "op" object and not the callback function itself.
generateOperation
is an async method, but it's called in constructor (which can't be async):Since it's a callback reference and not the actual operation data, the
previous
field on second operation becomes aZoneAwarePromise
instead of the operation data.previous: ZoneAwarePromise
This results in serialization of the state not being correct.
This can probably only be solved by removing this default create operation and requiring the library consumer to call some "create" method instead.
The text was updated successfully, but these errors were encountered: