Pass filter to useHotglue to limit the widget to specific flows or connectors. The filter is applied when the widget initializes, so the widget only fetches the flows and connectors you ask for. This makes the widget ready faster, especially in environments with many flows.The same filter is used by <Widget /> and <Connections />, so you don’t need to pass it to the components.
filter is optional. When set, it must include flows, connectors, or both. When it is not set, the widget loads every flow in the environment.
Behavior
Only flows: only the listed flows are loaded. If any flow ID does not exist in the environment, initialization fails with an InvalidFlowIdError whose message lists the missing flow IDs.
Only connectors: only the flows that contain at least one of the listed connectors are loaded.
Both flows and connectors:flows decides which flows are loaded. connectors still restricts which connectors are shown in those flows.
A single connector: when connectors has exactly one ID, the widget fetches only that linked connector instead of every linked connector in the flow. This is the common case when you open the widget for one connector, for example from a magic link.
link() for a flow outside the filter: still works. The widget fetches that flow’s connectors when link() is called.
Changing the tenant: if openWidget() or link() receives a different tenantId than the current one, the widget reinitializes for that tenant with the same filter.
The filter is compared by value, so passing a new object literal on each render does not reinitialize the widget. Changing its contents does.
Migrating from the component filter prop
The filter prop on <Connections /> and <Widget /> is deprecated. It still works, but it only hides flows and connectors after the widget has loaded all of them, so it does not make the widget faster.
We recommend using only the useHotglue filter. If you pass both, the useHotglue filter decides what is loaded and the component prop decides what is shown. A flow requested by the component prop that the useHotglue filter did not load is not shown.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"hotglue Docs","colors":{"primary":"#FA5240","light":"#FA5240","dark":"#0D001D"},"logo":{"light":"https://mintcdn.com/hotglue/93ZiEPSb_fe30f8U/logo/light.svg?fit=max\u0026auto=format\u0026n=93ZiEPSb_fe30f8U\u0026q=85\u0026s=d6da8a743c519a664de97ec2f17bbe47","dark":"https://mintcdn.com/hotglue/93ZiEPSb_fe30f8U/logo/dark.svg?fit=max\u0026auto=format\u0026n=93ZiEPSb_fe30f8U\u0026q=85\u0026s=f60f3face71611a2985a6e4e4dbe28b0"},"favicon":"https://mintcdn.com/hotglue/5Ve6qyQIr-eWU9BP/favicon.png?fit=max\u0026auto=format\u0026n=5Ve6qyQIr-eWU9BP\u0026q=85\u0026s=d69376acad4420dc613eb4cfef299453","api":{"openapi":"openapi.json"},"appearance":{"default":"dark","strict":true},"background":{"color":{"dark":"#0f1117"}},"navbar":{"links":[{"href":"https://status.hotglue.xyz/","label":"Status"}],"primary":{"type":"button","label":"Dashboard","href":"https://hotglue.com/dashboard"}},"footer":{"socials":{"twitter":"https://twitter.com/hotgluexyz","github":"https://github.com/hotgluexyz","linkedin":"https://www.linkedin.com/company/hotglue"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hotglue","hasAudioNarration":false,"actualSubdomain":"hotglue","customDomains":["docs.hotglue.com"],"gitSource":{"type":"github","owner":"hotgluexyz","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10a1cc9ffae5051c3f899e"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b11c2101685bb1ca4f4b85e","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"Documentation","count":325},{"language":"default","tag":"Connectors","count":259},{"language":"default","tag":"Community Connectors","count":190},{"language":"default","tag":"API Reference","count":84},{"language":"default","tag":"Embedded Widget","count":70},{"language":"default","tag":"Core Connectors","count":49},{"language":"default","tag":"hotglue API","count":32},{"language":"default","tag":"Key Concepts","count":25},{"language":"default","tag":"Transformation","count":25},{"language":"default","tag":"V1 flows (legacy)","count":21}],"searchSettings":{"showContentSnippets":true}},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"widget-v3/reference/filter","slug":"/widget-v3/reference/filter","pageMetadata":{"title":"filter","description":"Load and show only specific flows or connectors","href":"/widget-v3/reference/filter"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Load and show only specific flows or connectors\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`filter`,children:`filter`}),`\n`,_jsxs(_components.p,{children:[`Pass `,_jsx(_components.code,{children:`filter`}),` to `,_jsx(_components.code,{children:`useHotglue`}),` to limit the widget to specific flows or connectors. The filter is applied when the widget initializes, so the widget only fetches the flows and connectors you ask for. This makes the widget ready faster, especially in environments with many flows.`]}),`\n`,_jsxs(_components.p,{children:[`The same filter is used by `,_jsx(_components.code,{children:`\u003cWidget />`}),` and `,_jsx(_components.code,{children:`\u003cConnections />`}),`, so you don’t need to pass it to the components.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-react`,children:`Example (React)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`jsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`jsx`,children:_jsxs(_components.code,{language:`jsx`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useHotglue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Widget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Connections`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@hotglue/widget\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` default`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Integrations`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`openWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useHotglue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tenantId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tenant-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` environmentId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cENV ID>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cPUBLIC API KEY>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` filter:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`flows:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cFLOW ID>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`Widget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`Connections`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onClick`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` openWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Open Widget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`example-javascript`,children:`Example (JavaScript)`}),`\n`,_jsxs(_components.p,{children:[`The CDN version accepts the same `,_jsx(_components.code,{children:`filter`}),` in its configuration:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` hotglue`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Hotglue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tenantId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'tenant-1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` environmentId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\u003cENV ID>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\u003cPUBLIC API KEY>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` filter:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`connectors:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'salesforce'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`type-and-default`,children:`Type and default`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` WidgetFilter`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`connectors`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[]; `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`flows`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[] }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`connectors`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[]; `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`flows`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[] };`})]}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`flows`}),`: `,_jsx(_components.code,{children:`Array\u003cstring>`}),` (optional)`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Flow IDs to load and show.`}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`connectors`}),`: `,_jsx(_components.code,{children:`Array\u003cstring>`}),` (optional)`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Connector IDs to load and show.`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`filter`}),` is optional. When set, it must include `,_jsx(_components.code,{children:`flows`}),`, `,_jsx(_components.code,{children:`connectors`}),`, or both. When it is not set, the widget loads every flow in the environment.`]}),`\n`,_jsx(Heading,{level:`2`,id:`behavior`,children:`Behavior`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Only `,_jsx(_components.code,{children:`flows`}),`:`]}),` only the listed flows are loaded. If any flow ID does not exist in the environment, initialization fails with an `,_jsx(_components.code,{children:`InvalidFlowIdError`}),` whose message lists the missing flow IDs.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Only `,_jsx(_components.code,{children:`connectors`}),`:`]}),` only the flows that contain at least one of the listed connectors are loaded.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Both `,_jsx(_components.code,{children:`flows`}),` and `,_jsx(_components.code,{children:`connectors`}),`:`]}),` `,_jsx(_components.code,{children:`flows`}),` decides which flows are loaded. `,_jsx(_components.code,{children:`connectors`}),` still restricts which connectors are shown in those flows.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A single connector:`}),` when `,_jsx(_components.code,{children:`connectors`}),` has exactly one ID, the widget fetches only that linked connector instead of every linked connector in the flow. This is the common case when you open the widget for one connector, for example from a magic link.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`link()`}),` for a flow outside the filter:`]}),` still works. The widget fetches that flow’s connectors when `,_jsx(_components.code,{children:`link()`}),` is called.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Changing the tenant:`}),` if `,_jsx(_components.code,{children:`openWidget()`}),` or `,_jsx(_components.code,{children:`link()`}),` receives a different `,_jsx(_components.code,{children:`tenantId`}),` than the current one, the widget reinitializes for that tenant with the same `,_jsx(_components.code,{children:`filter`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The filter is compared by value, so passing a new object literal on each render does not reinitialize the widget. Changing its contents does.`}),`\n`,_jsxs(Heading,{level:`2`,id:`migrating-from-the-component-filter-prop`,children:[`Migrating from the component `,_jsx(_components.code,{children:`filter`}),` prop`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`filter`}),` prop on `,_jsx(_components.code,{children:`\u003cConnections />`}),` and `,_jsx(_components.code,{children:`\u003cWidget />`}),` is deprecated. It still works, but it only hides flows and connectors after the widget has loaded all of them, so it does not make the widget faster.`]})}),`\n`,_jsxs(_components.p,{children:[`Move the filter from the component to `,_jsx(_components.code,{children:`useHotglue`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`jsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`jsx`,children:_jsxs(_components.code,{language:`jsx`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Before`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`useHotglue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tenantId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`environmentId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`Connections`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` filter`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`flows:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cFLOW ID>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// After`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`useHotglue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tenantId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`environmentId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`filter:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`flows:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cFLOW ID>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] } });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`Connections`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`We recommend using only the `,_jsx(_components.code,{children:`useHotglue`}),` filter. If you pass both, the `,_jsx(_components.code,{children:`useHotglue`}),` filter decides what is loaded and the component prop decides what is shown. A flow requested by the component prop that the `,_jsx(_components.code,{children:`useHotglue`}),` filter did not load is not shown.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"filter","description":"Load and show only specific flows or connectors","href":"/widget-v3/reference/filter"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"filter","slug":"filter","depth":2,"children":[]},{"title":"Example (React)","slug":"example-react","depth":2,"children":[]},{"title":"Example (JavaScript)","slug":"example-javascript","depth":2,"children":[]},{"title":"Type and default","slug":"type-and-default","depth":2,"children":[]},{"title":"Behavior","slug":"behavior","depth":2,"children":[]},{"title":"Migrating from the component filter prop","slug":"migrating-from-the-component-filter-prop","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"hotglue","siteName":"hotglue Docs","title":"filter - hotglue Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T19:25:09.046Z","originalFileLocation":"widget-v3/reference/filter.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Load and show only specific flows or connectors\">\u003cmeta data-mint-head name=\"application-name\" content=\"hotglue Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hotglue/0VcZrfJjkH6v2iGG/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/hotglue/0VcZrfJjkH6v2iGG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hotglue/0VcZrfJjkH6v2iGG/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hotglue/0VcZrfJjkH6v2iGG/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hotglue/0VcZrfJjkH6v2iGG/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hotglue/0VcZrfJjkH6v2iGG/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hotglue/0VcZrfJjkH6v2iGG/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hotglue/0VcZrfJjkH6v2iGG/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hotglue/0VcZrfJjkH6v2iGG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"filter - hotglue Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Load and show only specific flows or connectors\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"hotglue Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hotglue.com/widget-v3/reference/filter\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hotglue.mintlify.site/_mintlify/api/og/v2?division=Reference\u0026amp;title=filter\u0026amp;description=Load+and+show+only+specific+flows+or+connectors\u0026amp;theme=bf1e0c1d893833c3374fd714\u0026amp;signature=5e32567e0895eea13d103b53939ca82105d419d62138eb1fb364fbe8b0cc5c64\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"filter - hotglue Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Load and show only specific flows or connectors\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hotglue.mintlify.site/_mintlify/api/og/v2?division=Reference\u0026amp;title=filter\u0026amp;description=Load+and+show+only+specific+flows+or+connectors\u0026amp;theme=bf1e0c1d893833c3374fd714\u0026amp;signature=5e32567e0895eea13d103b53939ca82105d419d62138eb1fb364fbe8b0cc5c64\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/hotglue/0VcZrfJjkH6v2iGG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"hotglue Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FA5240\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hotglue.com/widget-v3/reference/filter\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/widget-v3/reference/filter.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hotglue.com/#organization\",\"name\":\"hotglue Docs\",\"url\":\"https://docs.hotglue.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hotglue/93ZiEPSb_fe30f8U/logo/light.svg?fit=max\u0026auto=format\u0026n=93ZiEPSb_fe30f8U\u0026q=85\u0026s=d6da8a743c519a664de97ec2f17bbe47\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hotglue.com#website\",\"name\":\"hotglue Docs\",\"url\":\"https://docs.hotglue.com\",\"publisher\":{\"@id\":\"https://docs.hotglue.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hotglue.com/widget-v3/reference/filter#webpage\",\"url\":\"https://docs.hotglue.com/widget-v3/reference/filter\",\"name\":\"filter\",\"description\":\"Load and show only specific flows or connectors\",\"dateModified\":\"2026-12-03T19:25:09.046Z\",\"isPartOf\":{\"@id\":\"https://docs.hotglue.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hotglue.com/widget-v3/reference/filter#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hotglue.com/widget-v3/reference/filter#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Embedded Widget\",\"item\":\"https://docs.hotglue.com/widget-v3/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reference\",\"item\":\"https://docs.hotglue.com/widget-v3/reference/openWidget\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"filter\",\"item\":\"https://docs.hotglue.com/widget-v3/reference/filter\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.hotglue.com/widget-v3/reference/filter#article\",\"headline\":\"filter\",\"name\":\"filter\",\"description\":\"Load and show only specific flows or connectors\",\"url\":\"https://docs.hotglue.com/widget-v3/reference/filter\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hotglue.com/widget-v3/reference/filter#webpage\"},\"dateModified\":\"2026-12-03T19:25:09.046Z\",\"publisher\":{\"@id\":\"https://docs.hotglue.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hotglue.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"hotglue Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"hotglue Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/widget-v3/reference/filter.md","siteName":"hotglue Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"Embedded Widget","dropdowns":[{"dropdown":"Widget V3","icon":"3","groups":[{"group":"Embedded Widget","pages":[{"title":"Overview","icon":"eye","href":"/widget-v3/overview"},{"title":"Vanilla JS Setup","icon":"js","href":"/widget-v3/javascript"},{"title":"React Setup","icon":"react","href":"/widget-v3/react"},{"group":"Reference","icon":"book","pages":[{"title":"openWidget","href":"/widget-v3/reference/openWidget"},{"title":"link","href":"/widget-v3/reference/link"},{"title":"runJob","href":"/widget-v3/reference/runJob"},{"title":"getJobStatus","href":"/widget-v3/reference/getJobStatus"},{"title":"getSupportedConnectors","href":"/widget-v3/reference/getSupportedConnectors"},{"title":"setListeners","href":"/widget-v3/reference/setListeners"},{"title":"setLocalization","href":"/widget-v3/reference/setLocalization"},{"title":"helperText","href":"/widget-v3/reference/helperText"},{"title":"setCredentialsValidator","href":"/widget-v3/reference/setCredentialsValidator"},{"title":"Skip credential reuse flow","description":null,"href":"/widget-v3/reference/skipCredentialsReuseFlows"},{"title":"filter","href":"/widget-v3/reference/filter"},{"title":"hideBackButtons","description":"Hide back navigation buttons during widget and connection flows.","href":"/widget-v3/reference/hideBackButtons"},{"title":"Connections","href":"/widget-v3/reference/connections"},{"title":"Field map editor","href":"/widget-v3/reference/fieldMapEditor"},{"title":"enableCustomMapping","href":"/widget-v3/reference/customMapping"},{"title":"Sync Schedules","href":"/widget-v3/reference/sync-schedule"}]}]}]},{"dropdown":"Widget V2 (Legacy)","icon":"2","groups":[{"group":"Embedded Widget","pages":[{"title":"Overview","icon":"eye","href":"/connection-methods/embedded-widget/overview"},{"title":"Javascript Reference","icon":"js","href":"/connection-methods/embedded-widget/javascript"},{"group":"React Reference","icon":"atom","pages":[{"title":"Overview","href":"/connection-methods/embedded-widget/react/overview"},{"title":"Use the widget","href":"/connection-methods/embedded-widget/react/use-the-widget"},{"title":"HotglueConfig","href":"/connection-methods/embedded-widget/react/hotglue-config"},{"title":"Inline component","href":"/connection-methods/embedded-widget/react/inline-component"}]},{"group":"Options","icon":"sliders","pages":[{"title":"Allow multiple sources","href":"/connection-methods/embedded-widget/options/allow-multiple-sources"},{"title":"Custom Credential Validation","href":"/connection-methods/embedded-widget/options/custom-credential-validation"},{"title":"Create metadata","href":"/connection-methods/embedded-widget/options/create-metadata"},{"title":"Custom field mapping","href":"/connection-methods/embedded-widget/options/custom-field-mapping"},{"title":"Filter","href":"/connection-methods/embedded-widget/options/filter"},{"title":"Hide back buttons","href":"/connection-methods/embedded-widget/options/hide-back-buttons"},{"title":"Listeners","href":"/connection-methods/embedded-widget/options/listener"},{"title":"Localization","href":"/connection-methods/embedded-widget/options/override-default-text"},{"title":"Skip to flow","href":"/connection-methods/embedded-widget/options/skip-to-flow"}]},{"title":"Changelog","icon":"clock-rotate-left","href":"/connection-methods/embedded-widget/changelog"}]}]}]}]},"basePath":"","title":"filter - hotglue Docs","deploymentId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","buildId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","dynamics":[],"chunks":[]}