From c598c22538b8adafdf5915c2a84176c3614e1a75 Mon Sep 17 00:00:00 2001 From: Soreine Date: Mon, 14 Nov 2016 10:19:07 +0100 Subject: [PATCH] Use incrementing number to generate keys --- package.json | 3 +-- src/utils/uid.js | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 43dc64cd0..caa82e2fa 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,7 @@ "keycode": "^2.1.2", "lodash": "^4.13.1", "type-of": "^2.0.1", - "ua-parser-js": "^0.7.10", - "uid": "0.0.2" + "ua-parser-js": "^0.7.10" }, "peerDependencies": { "react": "^0.14.0 || ^15.0.0", diff --git a/src/utils/uid.js b/src/utils/uid.js index 56d901a8a..1960489db 100644 --- a/src/utils/uid.js +++ b/src/utils/uid.js @@ -1,6 +1,4 @@ -import generate from 'uid' - let N = 0 /** @@ -10,7 +8,7 @@ let N = 0 */ function uid() { - return (N++) + generate(4) + return String(N++) } /**