Skip to content

Commit

Permalink
🔧 Add render to mutationObserver
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Apr 11, 2020
1 parent d856b02 commit 759187f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,20 @@ const h = (
this.observer = new MutationObserver((mutationsList) =>
mutationsList.forEach(() => {
requestAnimationFrame(() => {
console.log("A")
render(
view(
composeState(
this.state,
this.props,
view,
this.element
),
this.props
),
this.element
)

reflectChildren(
this.element,
this.childNodes
Expand Down

0 comments on commit 759187f

Please sign in to comment.