Skip to content

Commit

Permalink
Merge pull request #24295 from RohanPoojary1107/patch-1
Browse files Browse the repository at this point in the history
Docs: Update Addon API Snippet (storybook-addons-api-usechannel.js.mdx)
  • Loading branch information
jonniebigodes authored Sep 30, 2023
2 parents 79f49b2 + 069e152 commit 8c7d53c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/snippets/common/storybook-addons-api-usechannel.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { AddonPanel, Button } from '@storybook/components';

import { STORY_CHANGED } from '@storybook/core-events';

import { useChannel } from '@storybook/manager-api';

export const Panel = () => {
// Creates a Storybook API channel and subscribes to the STORY_CHANGED event
const emit = useChannel({
Expand Down

0 comments on commit 8c7d53c

Please sign in to comment.