web / useBlocksList
Variable: useBlocksList ​
constuseBlocksList:UseBlocksListReturn
Defined in: apps/web/app/composables/useBlocksList/useBlocksList.ts:18
Composable for managing Editor content blocks lists and templates. Fetches, validates, and provides access control for block templates that can be added to pages.
Example ​
ts
const { blocksLists, setBlocksListContext, getBlockTemplateByLanguage } = useBlocksList();
setBlocksListContext('content');
const template = await getBlockTemplateByLanguage('banners', 0, 'en');