#share state between server islands

6 messages · Page 1 of 1 (latest)

mossy dirge
#

Is it possible to share state between multiple server islands? I have multiple islands, that all query the same data from our backend, depending on some search params of the current url. I would like to do this only once.

thx

south tangle
#

Hello! Yes it is possible. Let me get you the documentation it

mossy dirge
#

Thx, but I wasn’t talking about client components 😉 I want to share state between server islands.

vocal rain
#

I think a way to do it would be through middleware locals

#

You can do the fetch once on your middleware and access it anywhere