redwoodjs / redwood

The App Framework for Startups
https://redwoodjs.com
MIT License
17.17k stars 983 forks source link

Tutorial II - Introduction to Storybook - Storybook not updating when i update components #4834

Open jacebenson opened 2 years ago

jacebenson commented 2 years ago

i'm not sure if this is a local issue but when i was going through the storybook section, the storybook site just loaded components as empty sometimes. terminating the storybook server and starting it again seemed to correct the issue but I wanted to log this so we can verify its not across platform or if its's windows 11 specific we can call it out.

Page: https://redwoodjs.com/docs/tutorial2/introduction-to-storybook

thedavidprice commented 2 years ago

cc @cannikin

The current behavior of the Storybook server is that it does not reload and pick up changes to the mocks for situations where a Page contains a Cell — without restart, the Page will not display the Cell and mocked data correctly.

This needs a better diagnoses include a reproduction in it's own Issue. On my list but would appreciate help if anyone can beat me to it.

For now, we might need to add this as a callout in the Tutorial.

cannikin commented 2 years ago

Huh, is this a fairly new problem? If I had run into that when writing the tutorial I definitely would have called that out. So this is only an issue when changing data in a cell's mocks file, correct? And when you say "restart" you mean actually restart the Storybook process, not just manually refresh the browser?

virtuoushub commented 2 years ago

this seems to be a dupe of #4717

gracemorganmaxwell commented 1 month ago

@jtoar, is this task still available? Keen to assist if so :)

Josh-Walker-GM commented 1 month ago

Hey @gracemorganmaxwell 👋 I think the first step here would be to confirm if this (and #4717 if it's related) is still an open issue and the problem still exist since this is originally 2 years old now. Let me know if you want to take this on and dive deeper into it?