Skip to content

Commit

Permalink
Deprecate key in addon render function as it is not available anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Aug 10, 2023
1 parent 354d1ba commit d4ca02a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/lib/types/src/modules/addons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ export type BaseStory<TArgs, StoryFnReturnType> =

export interface Addon_RenderOptions {
active: boolean;
key: string;
/**
* @deprecated You should not use key anymore as of Storybook 7.2 this render method is invoked as a React component.
* This property will be removed in 8.0.
* */
key?: unknown;
}

/**
Expand Down

0 comments on commit d4ca02a

Please sign in to comment.