-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: hydratable and a more consistent remote functions model
#15533
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
elliott-with-the-longest-name-on-github
merged 41 commits into
main
from
elliott/remote-functions-hydratable-take-2
Mar 17, 2026
+1,238
−693
Merged
Changes from 5 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
68c96a1
feat: `hydratable` and a more consistent remote functions model
elliott-with-the-longest-name-on-github 7079723
another batch reviewed
elliott-with-the-longest-name-on-github 3b0ed66
i think it work
elliott-with-the-longest-name-on-github 6370070
types
elliott-with-the-longest-name-on-github 0a8ba50
fix test
elliott-with-the-longest-name-on-github af3a09c
Fix: Debug console.log statements left in production code will spam b…
vercel[bot] e2ab37f
whoops
elliott-with-the-longest-name-on-github ec96caf
LazyPromise
elliott-with-the-longest-name-on-github b4b5c9b
promise chain correction
elliott-with-the-longest-name-on-github 72bc665
better cleanup
elliott-with-the-longest-name-on-github 903abe8
fix options-2 tests
Rich-Harris 9862e78
cache bust
Rich-Harris abe6f28
Merge branch 'elliott/remote-functions-hydratable-take-2' of github.c…
Rich-Harris ebcc1ed
merge main
Rich-Harris 5621893
i'm going to become the joker
Rich-Harris 226c237
wtf wtf wtf
Rich-Harris cb3a98c
doh
Rich-Harris 9e987c4
finally, it fails locally
Rich-Harris 317230b
fix
Rich-Harris 34295c7
simplify
Rich-Harris 89f345f
Merge branch 'main' into elliott/remote-functions-hydratable-take-2
Rich-Harris c253e62
chore: hydratable remote functions tweaks (#15548)
Rich-Harris a4a834f
take one
elliott-with-the-longest-name-on-github cca9288
better
elliott-with-the-longest-name-on-github fb03b36
fixes
elliott-with-the-longest-name-on-github 5895a4d
deprecate unfriendly_hydratable
Rich-Harris d066e33
robustify event state
Rich-Harris fb672bf
make it readonly
Rich-Harris 9525d11
fix/simplify
Rich-Harris 93fc91b
simplify
Rich-Harris cd0aee2
disallow run() in effects
Rich-Harris 35da696
get rid of all the Awaited stuff, we definitely don't want that
Rich-Harris dd8f8fb
changeset
Rich-Harris 7636377
lint
Rich-Harris 4e7550d
chore: start queries on data property access, remove init
elliott-with-the-longest-name-on-github e593610
meh
elliott-with-the-longest-name-on-github e6dd225
misc
elliott-with-the-longest-name-on-github 362d566
giddy up
elliott-with-the-longest-name-on-github 2b94ad6
tests + batch fix
elliott-with-the-longest-name-on-github e3c0764
changesets
elliott-with-the-longest-name-on-github 95fdd23
better
elliott-with-the-longest-name-on-github 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
17 changes: 14 additions & 3 deletions
17
packages/adapter-netlify/test/apps/split/src/routes/remote/query/+page.svelte
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 |
|---|---|---|
| @@ -1,7 +1,18 @@ | ||
| <script> | ||
| import { onMount } from 'svelte'; | ||
| import { getData } from './example.remote'; | ||
|
|
||
| let data = $state.raw(new Promise(() => {})); | ||
| onMount(() => { | ||
| console.log('updating'); | ||
| data = getData(); | ||
| }); | ||
| </script> | ||
|
|
||
| {#await getData() then data} | ||
| <p>a: {data.a}</p> | ||
| {/await} | ||
| <svelte:boundary> | ||
| <p>a: {(await data).a}</p> | ||
|
|
||
| {#snippet pending()} | ||
| Loading... | ||
| {/snippet} | ||
| </svelte:boundary> | ||
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
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.