Skip to content
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

fix: renderComponent, add renderSnippet, and some other Svelte fix-ups #5888

Open
wants to merge 10 commits into
base: alpha
Choose a base branch
from

Conversation

walker-tx
Copy link

@walker-tx walker-tx commented Jan 25, 2025

This PR accomplishes a few things for the Svelte adapter:

  • fixes:
    • renderComponent
    • non-reactive components (via renderComponents)
  • features:
    • renderSnippet now allows users to render snippets (markup or programatic)
  • examples:
    • an example using renderSnippet
  • docs:
    • added mention of renderSnippet, and added it to a code example

Copy link

nx-cloud bot commented Jan 25, 2025

View your CI Pipeline Execution ↗ for commit 65aab40.

Command Status Duration Result
nx affected --targets=test:format,test:eslint,t... ❌ Failed 1m 38s View ↗
nx run-many --targets=build --exclude=examples/** ❌ Failed 45s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-26 16:33:07 UTC

@walker-tx walker-tx changed the title Fix renderComponent, add renderSnippet, and some other Svelte fix-ups fix: renderComponent, add renderSnippet, and some other Svelte fix-ups Jan 25, 2025
Copy link

@Karinza38 Karinza38 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Karinza38

@walker-tx walker-tx marked this pull request as ready for review January 26, 2025 04:27
{#snippet mailtoLink(email: string)}
<a href="mailto:{email}">
{email}
</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a typo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is 🫠

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants