@tramvai/storybook-addon 2.59.2 → 2.59.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +29 -0
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -328,6 +328,35 @@ const parameters: TramvaiStoriesParameters = {
328
328
  };
329
329
  ```
330
330
 
331
+ ## Troubleshooting
332
+
333
+ ### "Rendered more hooks than during the previous render."
334
+
335
+ In case of using both `fastRefresh` and `strictMode` in `reactOptions` in Storybook config in main.js, you might see the error message above.
336
+
337
+ This is a known issue in [Storybook itself](https://github.com/storybookjs/storybook/issues/15223), as a temporary workaround you can simply disable the `strictMode` in Storybook config.
338
+
339
+ Won't work:
340
+
341
+ ```js title=".storybook/main.js"
342
+ module.exports = {
343
+ reactOptions: {
344
+ fastRefresh: true,
345
+ strictMode: true,
346
+ }
347
+ };
348
+ ```
349
+
350
+ Works:
351
+
352
+ ```js title=".storybook/main.js"
353
+ module.exports = {
354
+ reactOptions: {
355
+ fastRefresh: true,
356
+ }
357
+ };
358
+ ```
359
+
331
360
  ## Contribute
332
361
 
333
362
  For testing changes in this plugin locally, you need a few steps:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/storybook-addon",
3
- "version": "2.59.2",
3
+ "version": "2.59.3",
4
4
  "description": "",
5
5
  "main": "lib/preset.js",
6
6
  "typings": "lib/preset.d.ts",
@@ -20,7 +20,7 @@
20
20
  "registry": "https://registry.npmjs.org/"
21
21
  },
22
22
  "dependencies": {
23
- "@tramvai/test-mocks": "2.59.2",
23
+ "@tramvai/test-mocks": "2.59.3",
24
24
  "@tinkoff/is-modern-lib": "2.0.6",
25
25
  "webpack-chain": "^6.5.1",
26
26
  "webpack-merge": "^5.8.0",
@@ -32,11 +32,11 @@
32
32
  "webpack": "5.75.0"
33
33
  },
34
34
  "peerDependencies": {
35
- "@tramvai/cli": "2.59.2",
36
- "@tramvai/core": "2.59.2",
37
- "@tramvai/state": "2.59.2",
38
- "@tramvai/react": "2.59.2",
39
- "@tramvai/tokens-common": "2.59.2",
35
+ "@tramvai/cli": "2.59.3",
36
+ "@tramvai/core": "2.59.3",
37
+ "@tramvai/state": "2.59.3",
38
+ "@tramvai/react": "2.59.3",
39
+ "@tramvai/tokens-common": "2.59.3",
40
40
  "@tinkoff/dippy": "0.8.11",
41
41
  "@tinkoff/router": "0.2.6",
42
42
  "@tinkoff/url": "0.8.4",