Newer Version Available

This content describes an older version of this product. View Latest

Disabling Locker Service for a Component

You can disable Locker Service for a component by setting API version 39.0 or lower for the component. If a component is set to at least API version 40.0, Locker Service is enabled. API version 40.0 corresponds to Summer ’17, when Locker Service was enabled for all orgs.

Locker Service is disabled for any component created before Summer ’17 because these components have an API version less than 40.0.

Component versioning enables you to associate a component with an API version. When you create a component, the default version is the latest API version. In Developer Console, click Bundle Version Settings in the right panel to set the component version.

For consistency and ease of debugging, we recommend that you set the same API version for all components in your app, when possible.