Skip to content

Commit

Permalink
fix: adds deprecation message on createShadowDomElements
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGhadyani-Okta committed Oct 23, 2024
1 parent 8bd12c7 commit dc18d41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/odyssey-react-mui/src/web-component/shadow-dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export type ShadowDomElements = ReturnType<
typeof createUnattachedShadowDomElements
>;

/**
* @deprecated Use `renderReactInWebComponent` instead. This function was necessary when using bare Shadow DOM, but with UI Shell rendering in a Web Component, you won't be able to render your Shadow DOM in its Shadow DOM without using a Web Component.
*/
export const createShadowDomElements = (containerElement: HTMLElement) => {
const shadowRoot = containerElement.attachShadow({ mode: "open" });

Expand Down

0 comments on commit dc18d41

Please sign in to comment.