Skip to content

Commit

Permalink
Merge pull request #30 from simon360/fix/re-rendering-markup-container
Browse files Browse the repository at this point in the history
Fix/re rendering markup container
  • Loading branch information
simon360 authored Sep 30, 2018
2 parents b5d47bb + d52ce0e commit f7f42bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const delayBy = delay => {
export default async domNode => {
const delay = domNode.getAttribute("data-delay");

console.log(delay);

await delayBy(parseInt(delay));

return <AsynchronousRehydrator isRehydrating={true} />;
Expand Down
7 changes: 4 additions & 3 deletions docs/demos/components/MarkupContainer/MarkupContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ class MarkupContainer extends React.Component {

return (
<div ref={this.mainRef}>
{markup.map((__html, i) => (
{markup.map((node, i) => (
<div
data-react-from-markup-container
dangerouslySetInnerHTML={{ __html }}
dangerouslySetInnerHTML={{
__html: `<div data-react-from-markup-container>${node}</div>`
}}
key={i}
/>
))}
Expand Down

0 comments on commit f7f42bf

Please sign in to comment.