elastic / kibana

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

Improve hook for setting the initial value #179658

Open ElenaStoeva opened 6 months ago

ElenaStoeva commented 6 months ago

The hook in src/plugins/console/public/application/containers/editor/monaco/use_set_initial_value.ts that provides a function for setting the initial value in the Console Monaco editor needs the following improvements:

### Tasks
- [ ] https://github.com/elastic/kibana/issues/179906
- [ ] Replace `window.addEventListener` with a Kibana service (e.g. `history`)
- [ ] Add unit tests for this hook
elasticmachine commented 1 week ago

Pinging @elastic/kibana-management (Team:Kibana Management)