elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.49k stars 8.05k forks source link

[Logs UI] Use [Provider, hook] pattern with constate containers #53776

Open Zacqary opened 4 years ago

Zacqary commented 4 years ago

Replace usages of constate like:

export const LogHighlightsState = createContainer(useLogHighlightsState);

with:

export const [LogHighlightsStateProvider, useLogHighlightsStateContext] = createContainer(useLogHighlightsState);
elasticmachine commented 4 years ago

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

elasticmachine commented 8 months ago

Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)