Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

fix: support addons that use hook api (#30) #92

Merged
merged 2 commits into from
Mar 20, 2022

Conversation

uk-taniyama
Copy link

@uk-taniyama uk-taniyama commented Mar 17, 2022

Issue: #30

What Changed

Fixed the following error when using the hooks function (ex. useArg) in the decorator function.

      Error: Uncaught [Error: Storybook preview hooks can only be called inside decorators and story functions.]

Checklist

Check the ones applicable to your change:

  • Tests are updated
  • Documentation is updated

Change Type

Indicate the type of change your pull request is:

  • documentation
  • patch
  • minor
  • major

@yannbf
Copy link
Member

yannbf commented Mar 20, 2022

Hey @uk-taniyama thank you so much for your contribution! Looks great 🚀

@yannbf yannbf merged commit 094822e into storybookjs:main Mar 20, 2022
@github-actions
Copy link

🚀 PR was released in v1.2.4 🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants