Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in custom elements, call oncreate in connectedCallback #1151

Merged
merged 2 commits into from
Feb 10, 2018
Merged

Conversation

Rich-Harris
Copy link
Member

I think this is the correct solution to #1117 — basically, whenever the element is first mounted, flush initial oncreate (and before/after create) hooks.

@codecov-io
Copy link

codecov-io commented Feb 4, 2018

Codecov Report

Merging #1151 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1151      +/-   ##
==========================================
+ Coverage   91.74%   91.75%   +0.01%     
==========================================
  Files         126      126              
  Lines        4557     4563       +6     
  Branches     1481     1487       +6     
==========================================
+ Hits         4181     4187       +6     
  Misses        158      158              
  Partials      218      218
Impacted Files Coverage Δ
src/generators/dom/index.ts 96.21% <100%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5e6959...d6dc602. Read the comment docs.

@Rich-Harris Rich-Harris merged commit 173792f into master Feb 10, 2018
@Rich-Harris Rich-Harris deleted the gh-1117 branch February 10, 2018 16:02
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