Repository navigation
fix: serialize server load data before passing to universal load alternative - #14298
Conversation
🦋 Changeset detectedLatest commit: 530de88 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Finally all green. |
|
Please resist the temptation to make drive-by tidy-ups, especially ones as large as these! It drowns out the substance of the PR and makes it much harder to understand what has actually changed. My tendency as a reviewer is to put PRs with large diffs in the 'ugh... later' pile, and I suspect a lot of maintainers are the same way. Now that I've reverted all those changes I can get to work on the actual review :) |
|
Sorry, it wasn't a temptation, it happened automatically on save. I usually undo these myself before committing, must have forgotten. |
|
Ah, interesting. FWIW they were good changes — the imports are very raggedy. Would just be nice to update them all en masse (and maybe add similar tooling to keep them organised afterwards), once there are no open PRs that doing so would create merge conflicts with |
|
Nice solution for that nonce thing |
Fixes #14298 When a load function errors, we still need the serialized data of the successfully run layout load functions.
…ternative (sveltejs#14298) * add universal load to /streaming/server test * revert sveltejs#14268 * server data serializer * Satisfy linter * rethrow serialization error after load promises are resolved * format * add changeset * get rid of the global placeholder * fix dumb mistake * fix errors * return directly again * return iterator even if all promises are resolved already * prevent memory leak * format * use `DEV` from `esm-env` * revert reordering * revert reordering * revert reordering * revert reordering * remove type, everything is a type in a .d.ts file * revert reordering * serialize -> add_node * unused * simplify create_async_iterator * avoid the need for set_nonce dance --------- Co-authored-by: Rich Harris <[email protected]>
Fixes sveltejs#14298 When a load function errors, we still need the serialized data of the successfully run layout load functions.
Alternative to #14268
Fixes #14291
CC @Rich-Harris
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.Edits