Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback

The "state" module provides functions for querying the current state of project entities (primarily for QA and integration purposes). You can use the State APIs as soon as the microsnippet loads (anytime after the script tag that invokes the Edge Decider).

let state = window.optimizelyEdge.get('state');