DEV Community

Discussion on: Linked lists in the wild: React Hooks

Collapse
dance2die profile image
Sung M. Kim

Seeing (what I thought only academic in nature) Linked List, used in React sounds great. It definitely helps on understanding "how" the fiber was implemented (as you also mentioned "why" in the Fiber documentation link).

I've also run into another place in React source, where they heavily utilizes Linked List.

React-cache is a reference implementation of upcoming data fetch feature.
The underlying implementation uses LRU (Least Recently Used) cache, which uses linked list to track cached resources.

Collapse
wuz profile image
Conlin Durbin Author

Ooh! That one is a circular doubly-linked list, which is really cool!

Collapse
dance2die profile image
Sung M. Kim

I honestly still haven't been able to figure the whole code out yet πŸ˜…

Thread Thread
wuz profile image
Conlin Durbin Author

Maybe I can do another one of these! I haven't read it yet though! Looks complicated!

Thread Thread
dance2die profile image
Sung M. Kim

Looking forward to your next post πŸ™‚. Thank you :p