storybook-react-context
Advanced tools
Comparing version 0.7.0-beta.2 to 0.7.0-beta.3
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13552
209