Skip to content

Commit f23628a

Browse files
authored
Merge pull request #4437 from Shopify/js-pos-nav-sandbox-doc-2026-07-rc
docs(pos): note per-screen sandbox in Navigation API limitations
2 parents 52ef40d + 7178fcb commit f23628a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/ui-extensions/docs/surfaces/point-of-sale/reference/apis/navigation-api.doc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const data: ReferenceEntityTemplateSchema = {
4646
sectionContent: `
4747
- The Navigation API is only available in action (modal) targets and can't be used in action (menu item), block, or tile targets that don't support multi-screen navigation.
4848
- Navigation state is limited to serializable data and can't contain functions, complex objects, or circular references.
49+
- Starting in version 2025-10, each screen runs in its own isolated sandbox. State held in module-level variables, closures, or singleton instances isn't shared between screens — use the \`state\` option in \`navigation.navigate()\` (read back via \`navigation.currentEntry.getState()\`) or the [Storage API](https://shopify.dev/docs/api/pos-ui-extensions/latest/target-apis/platform-apis/storage-api) (\`shopify.storage\`) to pass data between them.
4950
`,
5051
},
5152
],

0 commit comments

Comments
 (0)