Skip to content

How to update an entity? #2263

Answered by thegedge
OnkelTem asked this question in Q&A
Apr 4, 2025 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

If you just have a bunch of properties you can use applySnapshot. I'm pretty sure it requires a fully valid snapshot though, so you may need to do something like this if you only have a partial set of properties coming from your form:

applySnapshot(this.selectedProduct, { ...getSnapshot(this.selectedProduct), ...rest });

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@OnkelTem
Comment options

@OnkelTem
Comment options

Answer selected by OnkelTem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants