You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have followed @twind/with-svelte setup guide and it works. However when I started using await blocks, twind does not pick up the classes, I assume it's because the html elements aren't in the dom yet. How do I get around this? Is there a way to target a specific file like a component for example, so twind can generate the styles for the component even before the element is rendered by svelte's await block?
{#awaitpromise}
<divclass="fixed bottom-0 inset-x-0">
<Pulse />
</div>
{:thenresult}
<!-- This component will not have twind generated styles -->
<Component />
{/await}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have followed @twind/with-svelte setup guide and it works. However when I started using
await
blocks, twind does not pick up the classes, I assume it's because the html elements aren't in the dom yet. How do I get around this? Is there a way to target a specific file like a component for example, so twind can generate the styles for the component even before the element is rendered by svelte'sawait
block?Beta Was this translation helpful? Give feedback.
All reactions