Hub : Env variable value not changed in code blocks when passed as query param

Hi all !

When using a "code block " in the Next Hub, I can make content by dynamic by using env variables.
I can then make the user change the default value of these variables by passing a new value as query parameters in the url

Though, if the passed value is well taken in account by the “HTTP request maker”, in the “code block” it is still the default value that is displayed

Is there anything I miss ? Is it an behavior that should work ?

Thx for your input :slight_smile:
Marco

Hi @aio, just to confirm:

Though, if the passed value is well taken in account by the “HTTP request maker”, in the “code block” it is still the default value that is displayed

Do you mean that if the environment variable is used in both the HTTP request maker and the code block, the code block is not getting set? Or is it something else?

I haven’t tried in a context where only code block is used
I can try if needed

Just tried with a new blank page, using a single code block doesn’t solve the issue
I still have query param not changing the displayed code