From c5b6045f3613eba212f34edb9d5a028524155ff2 Mon Sep 17 00:00:00 2001 From: Camila Belo Date: Wed, 1 Dec 2021 16:15:35 +0100 Subject: [PATCH] docs(search): add changeset file Co-authored-by: Emma Indal Signed-off-by: Camila Belo --- .changeset/search-moles-wash.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .changeset/search-moles-wash.md diff --git a/.changeset/search-moles-wash.md b/.changeset/search-moles-wash.md new file mode 100644 index 0000000000..0fbac1368f --- /dev/null +++ b/.changeset/search-moles-wash.md @@ -0,0 +1,33 @@ +--- +'@backstage/plugin-search': minor +'example-app': patch +'@backstage/create-app': patch +--- + +Search Modal now relies on the Search Context to access state and state setter. If you use the SidebarSearchModal as described in the [getting started documentation](https://backstage.io/docs/features/search/getting-started#using-the-search-modal), make sure to update your code with the SearchContextProvider. + +Before: + +```tsx +export const Root = ({ children }: PropsWithChildren<{}>) => ( + + + + + + ... +``` + +Now: + +```tsx +export const Root = ({ children }: PropsWithChildren<{}>) => ( + + + + + + + + ... +```