Is there any way for an app block theme extension to detect query params?

Topic summary

Central question: whether a Shopify theme app block placed on a product page can read/parse URL query parameters.

Context: The block is built with Vite + React and is added by merchants through the theme editor to the Product Page. The developer wants to access query params from the product page URL for use within the block.

Updates/outcomes: No answers, solutions, or implementation details are provided in the excerpt.

Status: Unresolved and open; key question remains whether theme app blocks have access to URL query parameters and, if so, how to implement it.

Summarized with AI on December 27. AI used: gpt-5.

I have a Vite + React App Block that merchants can drag and drop into the Product Page from the theme editor.

I was wondering if it would be possible for this App Block to parse query params on the Shopify Product Page URL.