wcRenderContext.updateRenderContext (id, updates)

The wcRenderContext.updateRenderContext function retrieves the render context with the specified ID and applies the updates that are found in the specified updates object. After a context object is updated, the framework automatically calls all the renderContextChangedHandler methods of all the controllers.

Example

wcRenderContext.updateRenderContext('editShippingAddressContext', {
   'shippingAddress': '-1',
   'addressType': addressType
})

Parameters

id
(String) The render context ID.
updates
(Object) The render context updates. The properties of the object are added to the render context. Properties that have an undefined value are removed from the render context.