-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support reading URL query params #334
Comments
Michael Peter Michael Peter Caleb Jacob Michael Peter Michael Peter Caleb Jacob Michael Peter Michael Peter Caleb Jacob Caleb Jacob Michael Peter Michael Peter Caleb Jacob |
from roadmapping session:
merits some discussion on how strongly we push for components exporting a typed props object so that the gateway and other components can reliably tie into them |
After discussing with @mpeterdev, we decided to stick with a simpler solution for our first pass. Essentially, it'll function very similarly to how the current VM handles query params and passes them into the root component. We'll support The gateway (Next JS app) will pass all query params to the For the example above, you'd write a RoC component like so:
The only catch here is that if you were passing a number-like or boolean-like value
We could potentially support an option for automatically parsing these values based on export prop types, but that's out of scope for now. |
Ended up being blocked due to |
We need to provide some way of reading the current URL's query parameters inside of any component. This could also impact how we allow component authors to programmatically change the URL in the future.
The text was updated successfully, but these errors were encountered: