Behaviour of .sync and .update
See original GitHub issueIt seems .sync
is only setting the value right immediate of what passed into it;
While .update
seems to have much complete checking to the nested fields and update accordingly.
What is the use case for both .sync
and .update
?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Synchronization Behaviors - Hevo Data
In this synchronization behavior, the updated records from the data warehouse are synchronized with the Target. Any new records found in the ...
Read more >How Sync Behavior Works - Salesforce Help
Sync Behavior Set to Use the Most Recently Updated Record If Pardot and Salesforce values differ when synced, the value in the most...
Read more >Behavioural synchronization in a multilevel society of feral ...
Behavioural synchronization is the phenomenon where multiple individuals perform the same behaviours at the same time by mirroring each other, ...
Read more >Behavior-to-Structure Synchronization - YouTube
The behavior to structure synchronization checks the consistency of the Internal Block diagram (IBD) with Activities, automatically detects ...
Read more >What Is Data Synchronization and Why Is It Important? - Talend
A synchronization tool ensures that changes made to your data are updated in a manner that meets the standards set by your specific...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
But not all complex data should be treated as nested fields, so I don’t know if we can use .update() for .sync(). Maybe we can make a .sync(e, true) for update nested fields.
Anyway I suggest you to duplicate the demo branch into another branch like
demo-next
. So you can show me which kind of components and data structure you are using, and I will test these cases.Anyway if you want to set a field value use
.set('value', val)
. (it sets thevalue
property on the field class).But it doesn’t create nested fields if
val
isarray
, in that case use.update()
instead.