How to use updateConfig
See original GitHub issueHi,
Really liking v2.5.0 (especially being able to update options now). The only problem i’m having is how to call updateConfig. I’ve tried a few different things including:
(for the sake of these examples, the chart instance will be called chartInst)
Chart.updateConfig(chartInst)chartInst.updateConfig(newOptions)chartInst.updateConfig()updateConfig(chartInst)
But none of these work and there’s nothing in the documentation to explain how to use this new feature. Is anyone able to give me some insight into how it’s used?
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
UpdateConfig - AWS Ground Station
Updates the Config used when scheduling contacts. Updating a Config will not update the execution parameters for existing future contacts scheduled with ...
Read more >updateConfiguration(using:) - Documentation - Apple Developer
Instance Method. updateConfiguration(using:) Updates the cell's configuration using the current state. iOS 14.0+ iPadOS 14.0+ Mac Catalyst 14.0+ tvOS 14.0+ ...
Read more >Update config command - IBM
Use the update config command to set the Tivoli Storage FlashCopy Manager or Tivoli Storage Manager configuration parameters in a configuration file.
Read more >Method: projects.updateConfig - Identity Platform - Google Cloud
Encrypt data in use with Confidential VMs. Security Command Center. Platform for defending against threats to your Google Cloud assets.
Read more >updateConfig — DPBuddy 3.5 Documentation - MyArch
The updateConfig command updates the DataPower configuration based on the value of the “updates” ... Use '.*' for all domains except the default....
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

@etimberg
This really simple attempt at updating options fails horribly:
This would be much less of a headache if the options object (and data, while we’re at it) wasn’t mutated internally…
@etimberg That’s exactly what I’ve had to do to update the options:
But the caveats are:
null-ed, due to the merge strategy.This is the kind of rabbit hole that happens when objects are mutated instead of copied 😢