Is using md5 as key an anti-pattern in react? episode artwork

EPISODE · Nov 10, 2022 · 4 MIN

Is using md5 as key an anti-pattern in react?

from The Call Kent Podcast · host Kent C. Dodds

can i use the md5 checksum of the json data as key for each row in react? so context here is that i have a bunch of rows to show, and they dont have an id, and i can't use index as their order may change. so i am using the md5 of the JSON.stringify of the rows data. but i am thinking that calculating the md5 or sha1 maybe a thing which shouldn't happen in the UI render cycle, specially cause the render can happen many times as things in the top change?Is using md5 as key an anti-pattern in react?

Episode metadata supplied by the publisher feed · Published Nov 10, 2022

Embed this episode

NOW PLAYING

Is using md5 as key an anti-pattern in react?

0:00 4:23

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of The Call Kent Podcast?

This episode is 4 minutes long.

When was this The Call Kent Podcast episode published?

This episode was published on November 10, 2022.

Can I download this The Call Kent Podcast episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!