Edtr.io
DocumentationAPIBlog
v2.0.0GitHub

The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.

Home > @edtr-io/store > getScope

getScope() function

Gets the state of a scope

Signature:
export declare function getScope(state: State, scope: string): ScopedState

Parameters

ParameterTypeDescription
stateStateThe current state
scopestringThe scope
Returns:

ScopedState

The state of the specified scope

Privacy
Imprint

© 2026 Serlo Education e.V.

API Reference@edtr-io/core@edtr-io/default-document-editor@edtr-io/default-plugin-toolbar@edtr-io/document-editor@edtr-io/editor-ui@edtr-io/math@edtr-io/plugin@edtr-io/renderer-ssr@edtr-io/renderer-ui@edtr-io/renderer@edtr-io/store-devtools@edtr-io/store@edtr-io/ui@edtr-io/plugin-anchor@edtr-io/plugin-blockquote@edtr-io/plugin-files@edtr-io/plugin-geogebra@edtr-io/plugin-highlight@edtr-io/plugin-image@edtr-io/plugin-input-exercise@edtr-io/plugin-multimedia-explanation@edtr-io/plugin-rows@edtr-io/plugin-sc-mc-exercise@edtr-io/plugin-serlo-injection@edtr-io/plugin-spoiler@edtr-io/plugin-table@edtr-io/plugin-text@edtr-io/plugin-toolbar@edtr-io/plugin-video