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
getting an error while trying to emit timestamp object
Provide issue context below using code examples, images, or links
i have a timestamp create date variable with type of moment.Moment, i'm trying to emit it to the child from parent but i am getting an error and the variable doesn't seem to get serialized.
here is the implementation i am using:
// in parent:
const dateCreated = moment(moment().format());
this.parent.emit("callSuccess", dateCreated);
// getting an error
// Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Window': function (number) { var b = number % 10, output = toInt((number...<omitted>... } could not be cloned.
// in child
child.on("callSuccess", (data) => {
// data is undefined here
});
The text was updated successfully, but these errors were encountered:
moahammadalt
changed the title
Emit date timestamp object nor working
Emit date timestamp object not working
Jan 26, 2021
What Is the issue?
getting an error while trying to emit timestamp object
Provide issue context below using code examples, images, or links
i have a timestamp create date variable with type of moment.Moment, i'm trying to emit it to the child from parent but i am getting an error and the variable doesn't seem to get serialized.
here is the implementation i am using:
The text was updated successfully, but these errors were encountered: