Replies: 1 comment
-
Have you looked into initializing Faker with the same seed wherever it's being called from? https://fakerjs.dev/api/mersenne.html#seed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been using generated random data for my (storybook) stories.
faker-js generates realistic data, using
2 juli 2022
vs a27 september 2022
in combination withJohn Doe
vs aMr. Adrienne Schowalter II
affects how the components looks.This highlights where we can tweak the component to make ik look nice for many circumstances.
When I use faker in histoire, it doesn't work as i'd expect.
As the component is executed in both in the preview iframe and in the controls sidebar the value(s) of
name
are different.Is there a solution for storing/syncing random state in a story?
Beta Was this translation helpful? Give feedback.
All reactions