Skip to content

$patch function replace value in remote object #1921

Discussion options

You must be logged in to vote

Assigning an object to a different variable/object property does not make a copy. it just makes a new reference to the same object, so changing one changes the "other" as well.

That's just how JS works.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mathias22osterhagen22
Comment options

@LinusBorg
Comment options

@posva
Comment options

posva Jan 9, 2023
Maintainer

@mathias22osterhagen22
Comment options

@LinusBorg
Comment options

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1920 on January 09, 2023 16:09.