-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat: single-pass hydration #12335
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
Merged
Merged
feat: single-pass hydration #12335
Changes from all commits
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
0c37a40
WIP towards single-pass hydration
Rich-Harris a7b658a
fix
Rich-Harris cbeb564
fixes
Rich-Harris 9607f7e
fix
Rich-Harris bf75fd8
fix
Rich-Harris e23d992
Merge branch 'main' into single-pass-hydration
Rich-Harris ee9008b
fixes
Rich-Harris 86492e5
fix
Rich-Harris 6b3a3d6
fixes
Rich-Harris 9a80016
fix
Rich-Harris eb9824e
fix, tidy up
Rich-Harris 840c572
update script (it currently fails)
Rich-Harris 10f02f4
fix
Rich-Harris 2bfd5b2
fix
Rich-Harris a761d88
hmm
Rich-Harris c8bad17
fix
Rich-Harris 75ab257
fix
Rich-Harris 1074bfd
fix
Rich-Harris 64d8acd
fix
Rich-Harris dc45164
all hydration tests passing
Rich-Harris cafefce
drive-by fix
Rich-Harris 32bea02
fix
Rich-Harris f39c0f0
update snapshot tests
Rich-Harris 1dd0575
fix
Rich-Harris 79755e3
recover: false
Rich-Harris 2486b95
fix invalid HTML message
Rich-Harris 0343fc3
note to self
Rich-Harris c23e5ea
fix
Rich-Harris 16533e1
fix
Rich-Harris 65f8675
update snapshot tests
Rich-Harris 65d2053
fix
Rich-Harris c440445
fix
Rich-Harris 2aa9c67
fix
Rich-Harris ee95533
update test
Rich-Harris f263956
fix
Rich-Harris 32f6c4f
fix
Rich-Harris 8a4883f
fix
Rich-Harris 9f6c032
ALL TESTS PASSING THIS IS NOT A DRILL
Rich-Harris fa4d373
merge
Rich-Harris ee76cd7
optimise each blocks
Rich-Harris 7be9add
changeset
Rich-Harris ce14d06
type stuff
Rich-Harris 19579e1
fix comment
Rich-Harris 4f2b26a
tidy up
Rich-Harris aee8d0d
tidy up
Rich-Harris 99b2dca
tidy up
Rich-Harris 4de3f2e
tidy up
Rich-Harris 11a9ada
tidy up
Rich-Harris c7e3fb8
remove comment, turns out we do need it
Rich-Harris 667a1a2
revert
Rich-Harris 412ac8a
merge main
Rich-Harris 7bfc74f
reinstate standalone optimisation
Rich-Harris 0bdb35e
improve <svelte:element> SSR
Rich-Harris 1d9fd22
merge main
Rich-Harris 56d8708
reset more conservatively
Rich-Harris f5d36b8
tweak
Rich-Harris 2e468eb
DRY/fix
Rich-Harris aa45aa4
revert
Rich-Harris f77b10a
simplify
Rich-Harris 4a20760
add comment
Rich-Harris 357c5f5
tweak
Rich-Harris 1de3caa
simplify
Rich-Harris 50d9536
simplify
Rich-Harris 2436cbc
answer: yes, at least for now, because otherwise empty components are…
Rich-Harris 81d6c3f
tweak
Rich-Harris 93076bb
unused
Rich-Harris 6f31b62
comment is answered by https://github.com/sveltejs/svelte/pull/12356
Rich-Harris 09a3537
tweak
Rich-Harris d71dd5f
handle `<template>` edge case at compile time
Rich-Harris 3079878
this is no longer a possibility, because of is_text_first
Rich-Harris 4a2cb4b
unused
Rich-Harris bdf8946
merge main
Rich-Harris b763654
tweak
Rich-Harris 2d41103
merge main
Rich-Harris e52bf4b
fix
Rich-Harris 5676a84
move annotations to properties
Rich-Harris d79d503
Update packages/svelte/src/constants.js
Rich-Harris 8bdcee6
Update packages/svelte/src/compiler/phases/3-transform/client/visitor…
Rich-Harris 44efc18
Update packages/svelte/src/internal/client/dom/blocks/each.js
Rich-Harris 360ea32
Update packages/svelte/src/internal/client/dom/hydration.js
Rich-Harris d2a30c5
Update playgrounds/demo/vite.config.js
Rich-Harris 85ae369
add a comment
Rich-Harris c023a15
Merge branch 'single-pass-hydration' of github.com:sveltejs/svelte in…
Rich-Harris e7c8d61
prettier
Rich-Harris 9192bbb
tweak
Rich-Harris ba62a07
tighten up hydration tests, add test for standalone component
Rich-Harris b66f8bc
test for standalone snippet
Rich-Harris fd43c85
fix
Rich-Harris b62c321
add some comments
Rich-Harris 9268126
tidy up
Rich-Harris 4557344
avoid mutating `arguments`
Rich-Harris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'svelte': patch | ||
--- | ||
|
||
feat: single-pass hydration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.