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

ensure outroing each block iterations don't jump to the top #568

Merged
merged 13 commits into from
May 6, 2017

Conversation

Rich-Harris
Copy link
Member

Will explain this work in #373. The placement of outroing nodes is still wrong — that's the final part, and my brain is too melted at this point to figure it out.

@codecov-io
Copy link

codecov-io commented May 6, 2017

Codecov Report

Merging #568 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #568      +/-   ##
==========================================
+ Coverage   94.45%   94.48%   +0.02%     
==========================================
  Files          95       95              
  Lines        2761     2776      +15     
==========================================
+ Hits         2608     2623      +15     
  Misses        153      153
Impacted Files Coverage Δ
src/generators/dom/Block.js 96.87% <100%> (+0.1%) ⬆️
src/generators/dom/visitors/EachBlock.js 100% <100%> (ø) ⬆️

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 2faf788...b0a31dd. Read the comment docs.

@Rich-Harris
Copy link
Member Author

Seems like it works:

keyed-each

I think there's a bug in the unkeyed version, it occasionally gets out of whack if you jab the button often enough.

@Rich-Harris
Copy link
Member Author

REPL link for the above, once this is merged:

https://svelte.technology/repl?gist=1bad0d47afc0a6e9344b40a65d44f701

@Rich-Harris Rich-Harris changed the title [WIP] ensure outroing each block iterations don't jump to the top ensure outroing each block iterations don't jump to the top May 6, 2017
@Rich-Harris Rich-Harris merged commit 8bf9e0d into master May 6, 2017
@Rich-Harris Rich-Harris deleted the gh-543 branch May 6, 2017 19:25
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.

2 participants