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

Partially undo #2673, different approach for the DerefMut impl of VList #2692

Merged
merged 2 commits into from May 24, 2022

Conversation

WorldSEnder
Copy link
Member

@WorldSEnder WorldSEnder commented May 19, 2022

Description

VList again has a DerefMut implementation, undoes parts of #2673. The internal fully_keyed state now has an "indeterminate" variant instead of being just a bool, during reconciliation this indeterminate state recomputes the bool from the incoming children.

Fixes #2689

Checklist

  • I have reviewed my own code
  • I have added tests

VList again has a DerefMut implementation
the internal fully_keyed state now has an "indeterminate" variant
instead of being a bool, this recomputes it during reconciliation
github-actions[bot]
github-actions bot previously approved these changes May 19, 2022
@github-actions
Copy link

github-actions bot commented May 19, 2022

Visit the preview URL for this PR (updated for commit 8b2d8de):

https://yew-rs-api--pr2692-vlist-take-two-518v5s88.web.app

(expires Tue, 31 May 2022 20:51:28 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@github-actions
Copy link

github-actions bot commented May 19, 2022

Size Comparison

examples master (KB) pull request (KB) diff (KB) diff (%)
boids 172.848 172.892 +0.044 +0.025%
contexts 109.696 109.720 +0.023 +0.021%
counter 86.652 86.696 +0.044 +0.051%
counter_functional 87.304 87.348 +0.044 +0.050%
dyn_create_destroy_apps 89.771 89.815 +0.044 +0.049%
file_upload 102.620 102.664 +0.044 +0.043%
function_memory_game 167.285 167.329 +0.044 +0.026%
function_router 350.031 350.051 +0.020 +0.006%
function_todomvc 161.962 162.006 +0.044 +0.027%
futures 226.660 227.091 +0.431 +0.190%
game_of_life 107.538 107.582 +0.044 +0.041%
inner_html 83.688 83.767 +0.078 +0.093%
js_callback 112.918 112.944 +0.026 +0.023%
keyed_list 195.100 195.144 +0.044 +0.023%
mount_point 86.281 86.325 +0.044 +0.051%
nested_list 115.912 115.936 +0.023 +0.020%
node_refs 90.521 90.564 +0.044 +0.049%
password_strength 1539.690 1539.734 +0.044 +0.003%
portals 97.267 97.290 +0.023 +0.024%
router 319.142 319.173 +0.031 +0.010%
simple_ssr 153.538 153.570 +0.032 +0.021%
ssr_router 394.824 394.850 +0.025 +0.006%
suspense 110.563 110.590 +0.026 +0.024%
timer 89.391 89.435 +0.044 +0.049%
todomvc 143.054 143.098 +0.044 +0.031%
two_apps 87.285 87.329 +0.044 +0.050%
web_worker_fib 153.531 153.575 +0.044 +0.029%
webgl 87.374 87.586 +0.212 +0.243%

✅ None of the examples has changed their size significantly.

Copy link
Member

@hamza1311 hamza1311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good apart from one comment

Comment on lines 6 to 7
#[derive(Clone, Debug, PartialEq)]
enum FullyKeyedState {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have a Copy implementation. Or is there a reason you chose not to add it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None in particular, except being a little less careful since it's internal. Will add.

@hamza1311 hamza1311 added A-yew Area: The main yew crate bug labels May 24, 2022
@WorldSEnder WorldSEnder merged commit b90c99a into yewstack:master May 24, 2022
@WorldSEnder WorldSEnder deleted the vlist-take-two branch May 24, 2022 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-yew Area: The main yew crate bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to get nested mut VTag from mut VList
2 participants