Next.js Discord

Discord Forum

Suggestions on using Plaiceholder server component which is called from a client component

Unanswered
Netherland Dwarf posted this in #help-forum
Open in Discord
Netherland DwarfOP
So, I fetch some WordPress articles in page.js, and pass it to a component with swiper.js to create article slides. This has to be a client component because swiper uses all kinds of hooks. Each article slide component has a featured image, and I tried implementing Plaiceholder to generate dynamic blurred images. The problem is, Plaiceholder doesn't appear to work inside a client component.

Does anyone have any idea how to make this work?

0 Replies