docs: disable data-sveltekit-preload-data with "off" instead of false#10460
docs: disable data-sveltekit-preload-data with "off" instead of false#10460alesvaupotic wants to merge 1 commit into
data-sveltekit-preload-data with "off" instead of false#10460Conversation
Late versions of Kit prefer off over false, as in: Unexpected value for preload-data — should be one of "", "off", "tap", "hover"
|
|
There are currently plans to deprecate the That being said, it seems odd that the preload link options do not accept kit/packages/kit/src/runtime/client/utils.js Lines 33 to 34 in 4e62135 |
data-sveltekit-preload-data with "off" instead of false
benmccann
left a comment
There was a problem hiding this comment.
I agree it'd be better to accept false than update the docs
|
False or off, as long as it behaves as documented without shouting at developer. :) |
closes #10460 --------- Co-authored-by: Ben McCann <[email protected]>
Late versions of Kit prefer off over false, as in:
Unexpected value for preload-data — should be one of "", "off", "tap", "hover"
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:.