jridgewell / babel-plugin-transform-incremental-dom

Turn JSX into IncrementalDOM
MIT License
145 stars 12 forks source link

Smaller UUIDs #85

Closed oravecz closed 7 years ago

oravecz commented 7 years ago

Is it possible to generate uuids using a sequence number, or sequence with custom prefix?

jridgewell commented 7 years ago

What's the problem?

sequence number

Sequence numbers are likely to hit a user specified key, which is why I didn't use some counter. Imagine:

var lis = [{ id: 0 }, { id: 1 }];
<ul>
  {lis.map(li => <li key=li.id />)}
</ul>
oravecz commented 7 years ago

No problem per se. I was wondering about a smaller uUID so as to be able to minify more effectively On Wed, Dec 21, 2016 at 3:57 PM Justin Ridgewell notifications@github.com wrote:

What's the problem?

sequence number

Sequence numbers are likely to hit a user specified key, which is why I didn't use some counter. Imagine:

var lis = [{ id: 0 }, { id: 1 }];

    {lis.map(li =>
  • )}

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jridgewell/babel-plugin-transform-incremental-dom/issues/85#issuecomment-268637434, or mute the thread https://github.com/notifications/unsubscribe-auth/AASK8K_BBkDlIM8Ltj_5POa2iX-ndTmKks5rKZKegaJpZM4LTWBx .