Skip to content

fix: add missing storybook dev dependency to ondevice packages#854

Merged
dannyhw merged 2 commits into
nextfrom
dannyhw/fix/missing-storybook-devdep
Feb 28, 2026
Merged

fix: add missing storybook dev dependency to ondevice packages#854
dannyhw merged 2 commits into
nextfrom
dannyhw/fix/missing-storybook-devdep

Conversation

@dannyhw

@dannyhw dannyhw commented Feb 28, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds storybook as a devDependency to 7 packages that were missing it: ondevice-actions, ondevice-backgrounds, ondevice-controls, ondevice-notes, react-native-ui-common, react-native-ui-lite, react-native-ui
  • Without this, multiple copies of the storybook package could be resolved in the dependency tree, causing duplicate module instances at runtime

Problem

The missing devDependency caused:

  • Actions double-triggering — duplicate storybook channel instances meant events were emitted/received twice
  • fn() from storybook/test not applying — the fn() mock listener Set is module-scoped, so when packages resolved a different copy of storybook/test, mocks registered in user-land code weren't visible to the addon

Test plan

  • pnpm install && pnpm build completes without errors
  • Actions fire once per interaction (no double-triggering)
  • fn() mocks from storybook/test appear correctly in the actions panel

Several packages were missing storybook as a devDependency, which
could cause type-checking and build issues.
@changeset-bot

changeset-bot Bot commented Feb 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b1fbe16

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dannyhw dannyhw merged commit 1ef613c into next Feb 28, 2026
1 check passed
@dannyhw dannyhw deleted the dannyhw/fix/missing-storybook-devdep branch June 6, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant