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

Fix issue with tracking components for client-reorder await tags #1375

Merged
merged 1 commit into from Jul 3, 2019

Conversation

DylanPiercey
Copy link
Contributor

Description

Currently the ComponentsContext is not forwarded when using an <await client-reorder> tag.
This PR ensures that await tags with client-reorder are tracked accordingly which ensures more reliable keys, fixes some issues with hooking up events for split components and fixes some runtime errors that could occur if nesting await tags without components in between them.

This PR also contains a bonus change™️ which ensures that when creating new AST nodes while copying over body content from another node that the children properly track their new parent node. This fixes some issues with migrations which rely on this and also walk up the ast in some cases.

Checklist:

  • I have read the CONTRIBUTING document and have signed (or will sign) the CLA.
  • I have updated/added documentation affected by my changes.
  • I have added tests to cover my changes.

@codecov
Copy link

codecov bot commented Jul 3, 2019

Codecov Report

Merging #1375 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1375      +/-   ##
==========================================
- Coverage   90.59%   90.58%   -0.01%     
==========================================
  Files         341      341              
  Lines       12467    12466       -1     
==========================================
- Hits        11294    11292       -2     
- Misses       1173     1174       +1
Impacted Files Coverage Δ
src/core-tags/components/init-components-tag.js 93.75% <ø> (-1.49%) ⬇️
src/runtime/components/legacy/renderer-legacy.js 97.56% <100%> (-0.12%) ⬇️
src/runtime/html/AsyncStream.js 90.27% <100%> (+0.03%) ⬆️
src/compiler/ast/Node.js 96.29% <100%> (+0.03%) ⬆️
src/runtime/components/renderer.js 100% <100%> (ø) ⬆️
src/runtime/components/index.js 97.43% <0%> (-1.29%) ⬇️

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 535daf9...6e236c8. Read the comment docs.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.009%) to 90.582% when pulling 6e236c8 on async-component-tracking-fix into 535daf9 on master.

@mlrawlings mlrawlings merged commit 10f99c7 into master Jul 3, 2019
@DylanPiercey DylanPiercey deleted the async-component-tracking-fix branch July 8, 2019 17:20
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.

None yet

3 participants