A context provider is a logical component that shares state and behavior with Editor React Components in Studio Two. The Studio Two editor and the Wix Extension Builder call this extension a Data Source. Its generated code uses context provider APIs and React Context, documented in About Context Provider Extensions.
A Data Source connects several ERCs to the same state and functions through editor binding:
Wix business solutions provide Data Sources for coordinated site experiences. For example, the Wix Stores Product Data Source provides the Product Context, which holds a product's details, the selected options, pricing, and stock, along with functions such as adding the selection to the cart. An ERC can connect to it through editor binding, or read it directly by calling the context's hook. For every context Wix provides, see Wix Business Solution Contexts. Wix also creates Data Sources for each CMS collection, so you can connect elements to collection data. Learn more about CMS Data Sources.
You can add a custom Data Source when several components need site-specific state. For example, a team page can share the selected department, a filtered teammate list, and a function for changing the filter.
A custom Data Source has 2 files:
For the files and manifest fields, see About Context Provider Extensions in Extension References.
Last updated: 2 November 2026