Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Custom Lexical Block

default discord avatar
showmatic4 months ago
4
@360823574644129795

you guys are awesome

  • discord user avatar
    alessiogr
    5 months ago

    FYI, we'll change this so that custom RSCs re-render when the block edit drawer is saved. That way, the value will updated and you won't need a client component, unless you have something in the actual block component that changes its value

  • default discord avatar
    showmatic5 months ago

    Thank you

  • discord user avatar
    alessiogr
    5 months ago

    Server components only receive the initial data. I would not use them if you need the current data and if you want it to be reactive.



    For that, please use a client component and get the data from the useForm hook

  • default discord avatar
    showmatic5 months ago

    When creating a custom Lexical block, how can you force a rerender of the component to reflect the changes before refreshing the page?



    Issue shown here at 22:50


    https://youtu.be/y9jBK8LKddM?si=vqUElxJS7pnB2UUP&t=1370
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.