Skip to content

Fix issue #648: add queue for componentDidUpdate#884

Closed
markselby9 wants to merge 1 commit into
preactjs:masterfrom
markselby9:fix#648
Closed

Fix issue #648: add queue for componentDidUpdate#884
markselby9 wants to merge 1 commit into
preactjs:masterfrom
markselby9:fix#648

Conversation

@markselby9

Copy link
Copy Markdown
Contributor

Fix this issue by adding a queue for componentDidUpdate lifecycles and flush it after rendering

before this PR: gzip size: 3444
after this PR: gzip size: 3503

Issue: #648

…update

Fix this issue by adding a queue for componentDidUpdate lifecycles and flush it after rendering

Issue: preactjs#648
@markselby9 markselby9 changed the title Fix issue: componentDidUpdate can not promise to be called after dom … Fix issue #648: add queue for componentDidUpdate Sep 19, 2017
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling e9d4d3c on markselby9:fix#648 into f7834ec on developit:master.

@marvinhagemeister

Copy link
Copy Markdown
Member

Dang, I wish we'd seen this PR sooner! Our code in master is similar to the changes in this PR. Since I started working on preact (about a year ago) we've always had a queue for componentDidMount. Not sure when it was added and why this PR wasn't merged back then :S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants