#Pass data from layout to slotted children

4 messages · Page 1 of 1 (latest)

burnt moss
#

Hi, the use case I'm working through is having a global layout component retrieve user information, and then trying to pass that to it's slotted children, similar to how Context would work in other frameworks. Is there an idiomatic way of doing this? Or, for each page, would I just pull the user information instead of having it being passed as a prop?

astral anchorBOT
#
No-one around right now?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

spark grail
#

Welcome, any answer from the core team to this?

Thank you, Astro team

#

Seems no way as mentioned here.

#1014999694004473907 message