Skip to content

Commit

Permalink
docs(knobs) Add caveat about date defaultValue
Browse files Browse the repository at this point in the history
Related to storybookjs#804
  • Loading branch information
SpainTrain authored Aug 23, 2017
1 parent 92fd9da commit a8216e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/knobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ const defaultValue = new Date('Jan 20 2017');
const value = date(label, defaultValue);
```

> Note: the default value must not change - e.g., do not do `date('Label', new Date())` or `date('Label')`
### withKnobs vs withKnobsOptions

If you feel like this addon is not performing well enough there is an option to use `withKnobsOptions` instead of `withKnobs`.
Expand Down

0 comments on commit a8216e7

Please sign in to comment.