-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Milestone
Description
Describe the bug
When using the sequence helper to chain multiple handle functions, transformPage is only actually run in the last one. Not sure if it was intended or not, but it would be nice if we could use transformPage in all handles, regardless of order.
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-wg5zme?file=src%2Fhooks.js&terminal=dev
You can see in the reproduction that the html lang attribute is not changed. If we swap the two handle functions so that the one that uses transformPage comes last, the html is changed.
Logs
No response
System Info
System:
OS: Windows 10 10.0.22000
CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
Memory: 19.88 GB / 39.76 GB
Binaries:
Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
npm: 8.4.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.22000.120.0), Chromium (98.0.1108.43)
Internet Explorer: 11.0.22000.120
npmPackages:
@sveltejs/adapter-vercel: 1.0.0-next.43 => 1.0.0-next.43
@sveltejs/kit: ^1.0.0-next.278 => 1.0.0-next.278
svelte: ^3.46.4 => 3.46.4Severity
serious, but I can work around it
Additional Information
No response
willfarrell