From c8ed2de9749d04e3462d51ae20f10074e3816a01 Mon Sep 17 00:00:00 2001 From: Tim Finley Date: Wed, 24 Apr 2024 09:07:42 -0400 Subject: [PATCH] Fix "GraphQL and Storybook" link in docs --- docs/reference/cms-dev-server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/cms-dev-server.md b/docs/reference/cms-dev-server.md index da6fae6..15d9a96 100644 --- a/docs/reference/cms-dev-server.md +++ b/docs/reference/cms-dev-server.md @@ -80,5 +80,5 @@ Visit the page as a "preview". You can do this from the page editor by clicking ## Storybook `cms-dev-server` includes a [Storybook](https://storybook.js.org/) integration. Pass a `--storybook` option when starting the server to start a Storybook instance alongside the built-in dev server. You may then add `.stories.jsx` files alongside your components to build stories for testing or development. At the root http://hslocal.net:3000 page there should be a link to the Storybook UI for your project. -To make building stories for HubSpot modules easier, `cms-dev-server` provides helpers to auto-generate `argTypes` based on module fields. See the [GraphQL and Storybook](https://github.com/HubSpot/cms-react/tree/main/graphql-storybook/gql-storybook-project/gql-storybook-app) example project for usage of `moduleStory()`. +To make building stories for HubSpot modules easier, `cms-dev-server` provides helpers to auto-generate `argTypes` based on module fields. See the [GraphQL and Storybook](https://github.com/HubSpot/cms-react/tree/main/examples/graphql-storybook/gql-storybook-project/gql-storybook-app) example project for usage of `moduleStory()`. Storybook is built with client components in mind, so components that cross island boundaries can have unexpected lifecycle behavior when rendered in a story. Because server-only components never make it to the browser, they cannot be hot reloaded and a full re-render is necessary to update the server response. To fully emulate hybrid rendering in Storybook at the cost of hot module reloading, you may use `moduleStoryWithIsland()` in your story in place of `moduleStory()`.