-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: ability to use manual script injection in hooks #89
feat: ability to use manual script injection in hooks #89
Conversation
🦋 Changeset detectedLatest commit: feef749 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
- adds a new function to generate the script source for manual injection using a hook - adds a new prop `disableHeadScriptInjection` to disable script addition from the rendered component
ef36566
to
576551a
Compare
is there anything I should do to have this considered? |
Hey there @fnimick, thanks for this! I need to investigate why the contents of the |
Any updates or anything I can do to move this along? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a ton for your contributions!
Adds a new function to return the script source, for manual injection into a
<script>
tag using a hook, as described in sveltejs/kit#10377 (comment)Adds a new prop to disable head script addition at the component level, if you are using the above function for manual injection.
Also updates
setInitialMode
to correctly use configured local storage keys.