Skip to content

Commit

Permalink
fix: listen layout changes by deps
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel Hijazi <[email protected]>
  • Loading branch information
pablo1v and Gabriel Hijazi committed Feb 19, 2021
1 parent 672bc80 commit 92a77b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lib/mdx-render/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Provider = ({ html, code, imports }: Render): JSX.Element => {
const markdownRendered = makeMarkdownElement(code, scope);

hydrate(markdownRendered, elementRef.current);
}, []);
}, [html, code, imports]);

return (
<div
Expand Down

0 comments on commit 92a77b0

Please sign in to comment.