hasura / ddn-docs

Repository for the Hasura DDN version of docs
https://hasura.io/docs
2 stars 6 forks source link

Update CodeStep component #569

Closed robertjdominguez closed 1 month ago

robertjdominguez commented 1 month ago

Description 📝

Updates the CodeStep component to act as a static component.

As @seanparkross rightly pointed out, this component can be massively simplified by not relying on useState and rather simply passing values as props.

NB: The issue we've run into before is this content not populating in production environments due to caching. So, testing will be tricky.

Quick Links 🚀

Quickstart

robertjdominguez commented 1 month ago

Hey, @robertjdominguez :wave:

Thanks for this PR! Since you changed docs files, our automated Action assigned Rob as your reviewer :tada:

Before Rob looks over the changes, we ask you to take care of a couple of items:

The docs team aims to get all PRs reviewed within 48 hours of your team doing a review in the form of a content pass. Let Rob know the level of urgency on Slack :+1:

cloudflare-workers-and-pages[bot] commented 1 month ago

Deploying v3-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 880f941
Status: ✅  Deploy successful!
Preview URL: https://567fdd31.v3-docs-eny.pages.dev
Branch Preview URL: https://rob-update-codestep-componen.v3-docs-eny.pages.dev

View logs