#Page props are empty

1 messages · Page 1 of 1 (latest)

torpid zenithBOT
#

Hi @leaden plinth. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

I’m sorry, but the provided knowledge sources don’t mention any Astro v5 change that would make Astro.props become an empty object by default, nor a known issue about props disappearing after upgrade. [Known issues]

What the docs do confirm:

  • Astro.props is still how Astro components receive props, including props passed from getStaticPaths and from parent components. [Component props; The context object]

Given this, your issue isn’t explained by the official v5 upgrade notes we have. A few next steps:

  • Double-check where props are supposed to be coming from (parent component attributes or getStaticPaths props) and ensure those calls still pass values as shown in the docs. [Component props; The context object]
  • If this used to rely on any removed/changed behavior (e.g., integrations or routing changes), review the v5 upgrade guide for related breaking changes. [Upgrade to v5]
  • If nothing stands out, this may be a regression or edge case. Please check or file an issue with a minimal repro. [Known issues]

If you can share a small code snippet (parent usage + child component, or getStaticPaths + page), I can help pinpoint where props stop being passed.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@leaden plinth Kapa.ai is still learning and improving, please let me know how I did by reacting below.