exhibitionist-digital / ultra

Zero-Legacy Deno/React Suspense SSR Framework

Home Page:https://ultrajs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

twind not working with suspense

epotter2297 opened this issue · comments

When I put something inside of <Suspense> that has twind styles, it will fail to correctly display the styles on the first load of the route. On the second load, it will work correctly.

Here is a repo I made to showcase the issue

GIF of problem

I think there was an error in how these integrations were scaffolded out in your example.

Here is a fork of your repo that seems to be working as intended.

mashaal/ultra-sample@6e67840

I followed the examples found here https://github.com/exhibitionist-digital/ultra/tree/main/examples to debug this, though this could be a bit more elegant.