Skip to main content

Type Alias: ShareScope

type ShareScope = "everywhere" | "tabs" | "tab";

How far a shared value travels:

  • 'everywhere' — every tab, window, and worker on this origin (default)
  • 'tabs' — tabs and windows only; writes coming from workers are ignored
  • 'tab' — this tab only (state is still shared between components)