Composes a complete Ai11yContext from singleton state and DOM markers
Optional
Optional DOM root element to scan for markers (defaults to document.body)
A complete Ai11yContext object with markers from DOM and state from singleton
import { setRoute, setState, getContext } from '@ai11y/core';setRoute('/billing');setState({ userId: '123' });const context = getContext(); Copy
import { setRoute, setState, getContext } from '@ai11y/core';setRoute('/billing');setState({ userId: '123' });const context = getContext();
Composes a complete Ai11yContext from singleton state and DOM markers