Skip to content

@sqlrooms/vega / useVegaEditorContext

Function: useVegaEditorContext() ​

useVegaEditorContext(): VegaEditorContextValue

Hook to access the Vega editor context. Must be used within a VegaLiteChart.Container component.

Returns ​

VegaEditorContextValue

Throws ​

Error if used outside of VegaLiteChart.Container