-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Addon-docs: Track code-level args changes in ArgsTable
#16488
Conversation
…entation changes. This means things like the `ArgsTable` can keep up to date. NOTE: this does not work if a different story to the the "selected" story is updated in docs mode, which can be visible on the screen. This is a symptom of a larger problem in the way that docs mode works.
Nx Cloud ReportCI ran the following commands for commit db17405. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
I gotta test out first, but have you tried updating jsdocs and seeing if HMR updated them in controls as well? I know that was a problem before. |
I'm not sure. I think there are a few pieces to that puzzle that might not work. |
ArgsTable
ArgsTable
const { selection } = this.urlStore; | ||
const { | ||
selection, | ||
selection: { storyId }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can selection
ever be nullish? the previous code was run under a try block and the new code isn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue: #16174
What I did
Emit a
STORY_ARGS_UPDATED
event whenever the current story's implementation changesThis means things like the
ArgsTable
can keep up to date.NOTE: this does not work if a different story to the the "selected" story is updated in docs mode, which can be visible on the screen. This is a symptom of a larger problem in the way that docs mode works.
How to test
react-ts
ArgsTable
.