How to delete a prop from node ? #388
Answered
by
prevwong
ProPhycient5
asked this question in
Q&A
Replies: 1 comment 4 replies
-
actions.setProp(prop => {
delete prop.text;
}); |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
ProPhycient5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Taking below code as example to put my query in better way:
Here, we see that
text
is already exist as one of the prop or even we can set new prop usingactions: {setProp}
usinguseNode
oruseEditor
. My question is : How can we deletetext
permanently from that node ??I don't want to keep by assigning its value as
undefined
orempty
.Please do comment below 👇🏼👇🏼👇🏼👇🏼👇🏼 your solution taking above code as example
Beta Was this translation helpful? Give feedback.
All reactions