question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Behaviour of .sync and .update

See original GitHub issue

It 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:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
foxhound87commented, Oct 27, 2016

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.

1reaction
foxhound87commented, Oct 26, 2016

Anyway if you want to set a field value use .set('value', val). (it sets the value property on the field class).

But it doesn’t create nested fields if val is array, in that case use .update() instead.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found