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
I am then creating my model with an explicit Uint8Array.
const interactionEventModel = InteractionEventModel.create({
interactionEventMessage: new Uint8Array(message)
})
What I expect to happen is that my fromSnapshot is called with the passed arg new Uint8Array(message).
However what actually happens is the toSnapshot is called with the passed arg new Uint8Array(message). This does not match up with what I can understand from the docs here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am running into problems with creating my own custom type. This is what I have.
https://pastebin.com/hinXCuP3
https://pastebin.com/sSwS9zU6
I am then creating my model with an explicit Uint8Array.
const interactionEventModel = InteractionEventModel.create({
interactionEventMessage: new Uint8Array(message)
})
What I expect to happen is that my fromSnapshot is called with the passed arg new Uint8Array(message).
However what actually happens is the toSnapshot is called with the passed arg new Uint8Array(message). This does not match up with what I can understand from the docs here.
And from this example given here. #662
Beta Was this translation helpful? Give feedback.
All reactions