How to reset faker.unique() on v6.3.1? #1084
Unanswered
aboutjquery
asked this question in
Q&A
Replies: 1 comment 2 replies
-
#800 was released in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a piece of code running on gulp that mostly creates lots of addresses for html to read and apply.
My design is to execute the file and reload again when the file or the html itself has changed, I use gulp's watch method.
I get an error message when I change this file or html several times.
I changed
i
toi < 5
without pausing the watch but still got the error, until I stopped the watch and re-run the task, of course the error still appeared after several times.I thought that
faker.unique()
would be reset every time I re-execute the above code, but obviously not, I believe there is something like cache behind it.Refer to other articles 7.0 seems to have a solution but I can only use the 6.3.1 version, is there a solution?
Does
maxRetries
help with this?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions