Skip to content

Commit

Permalink
Fix HeaderControl not rendered if not mount in initial rendering (#8335)
Browse files Browse the repository at this point in the history
* Add useObservableValue hook

Signed-off-by: Lin Wang <[email protected]>

* Fix header control not render when not mount in initial rendering

Signed-off-by: Lin Wang <[email protected]>

* Changeset file for PR #8335 created/updated

* Import useObservable from lib folder

Signed-off-by: Lin Wang <[email protected]>

* Change to useObservable for non function observable object

Signed-off-by: Lin Wang <[email protected]>

* Update src/core/public/utils/use_observable_value.ts

Co-authored-by: Yulong Ruan <[email protected]>
Signed-off-by: Lin Wang <[email protected]>

---------

Signed-off-by: Lin Wang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: Yulong Ruan <[email protected]>
  • Loading branch information
3 people authored Sep 27, 2024
1 parent ea8b716 commit 8691010
Show file tree
Hide file tree
Showing 6 changed files with 1,741 additions and 1,841 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/8335.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Fix HeaderControl not rendered if not mount in initial rendering ([#8335](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8335))
Loading

0 comments on commit 8691010

Please sign in to comment.