Replies: 1 comment
-
|
So to add some context it might help to mention some prior art that inspired waku slices: waku slices could reductively put as an RSC implementation of astro islands or gatsby slices. (though this loses nuance)
Static by default, but it's important that dynamic is also possible here. There are unstable api's for refetching dynamic id's, which is part of the motivation for a feature like slices.
Slices can be thought of as a way to further weave in RSC. For example, let's say you have a component that would benefit from being static, but you'd like to use it on multiple pages... these pages could be static or dynamic, so it makes sense to keep that component static as a slice, and the pages can still have their own choice of dynamic vs static.
I'm not the most versed on |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Heya, thank you for all your work on Waku! I have not used it myself yet, but I am grateful there exists a less-Vercel-y alternative, and I'm looking forward to giving it a shot in my next server-y side project.
Reading the docs, I was excited to discover a new building block: Slices! Unfortunately I could not quite make sense of them yet (despite also scouring github and the announcement blog post). I'm probably not the brightest sandwich in the drawer but I bet if I'm confused, an average reader might be too.
Let's look at the docs
Up to the last three words it sounds like you're just talking about regular old components. But okay, alternative rendering patterns, interesting, what might those be?
Ah, so my reading: if they are static, which they are by default, they will be rendered only once even if I use them multiple times?
Let's read on...
How is that different from a server component (a static page) that embeds a client component (an island)?
So with the only use case I'm understanding from the doc, it looks to me like a more unwieldy version of Next's
use cache. But I feel like I might be missing something?Thanks for reading!
Beta Was this translation helpful? Give feedback.
All reactions