You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I'm afraid this isn't possible. Anything passed to define:vars is serialised with JSON.stringify, which won't work with functions. You'll need to find another way. Without seeing more of your usage it's not possible for me to suggest, but maybe having a slot would work. See the docs here: https://docs.astro.build/en/reference/container-reference/#adding-a-renderer-manually
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
If I define a component props this way:
And put this component in a page the following way:
In browser I got logged:
What's the expected result?
I expected to be able to pass function as component props somehow and get it reflected in the client side, so they don't appear as
undefined
Link to Minimal Reproducible Example
https://stackblitz.com/github-n4np37
Participation
The text was updated successfully, but these errors were encountered: