exhibitionist-digital / ultra

Zero-Legacy Deno/React Suspense SSR Framework
https://ultrajs.dev
MIT License
3k stars 67 forks source link

twind not working with suspense #153

Closed epotter2297 closed 2 years ago

epotter2297 commented 2 years ago

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

mashaal commented 2 years ago

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.

https://github.com/mashaal/ultra-sample/commit/6e678406c9c4f332350ad96711f571832a885962

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.

mashaal commented 2 years ago

Kapture 2022-09-02 at 08 37 44