Exhaustive testing of sharing data between nested symbols

In Dynamic Page Text Based on URL Params - #2 by maddy, it states that you should be able to use state.location.query to grab query params. In my testing, however, the query params object is empty, at least when previewing a page draft. It’s also still empty even when I add an additional param like hi=lol, just to cover the possibility that maybe Builder’s preview URL params (e.g., apiKey) are being filtered out.

Hey @ersin ! Good catch…state.location is currently in the process of being deprecated (and we are in the process of updating our docs to reflect that!)

We recommend using window.location for any code that relies on URL and query params

Hope that helps!