Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storybook-react-context

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-react-context - npm Package Compare versions

Comparing version 0.7.0-beta.2 to 0.7.0-beta.3

2

package.json
{
"name": "storybook-react-context",
"version": "0.7.0-beta.2",
"version": "0.7.0-beta.3",
"description": "Manipulate React context inside Storybook. Read state and dispatch updates from outside of React component.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -55,2 +55,5 @@ # storybook-react-context

NB: Avoid using the same `context` parameter for `reactContext` as in the default export of the story. This will cause a
maximum call stack size exceeded error.
### Options

@@ -202,2 +205,6 @@

The `contextValue` function provides the story context as its first argument. This gives access to story args and other
context values. In addition, the [useArgs hook](https://storybook.js.org/docs/writing-stories/args#setting-args-from-within-a-story)
from `@storybook/preview-api` is exposed to access and update the args within the story.
See the [example stories](https://github.com/tyom/storybook-react-context/tree/main/example/storybook-react-context.stories.tsx) for more.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc