re: Linked lists in the wild: React Hooks VIEW POST

VIEW FULL DISCUSSION
 

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.

 

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

 

I honestly still haven't been able to figure the whole code out yet 😅

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

Looking forward to your next post 🙂. Thank you :p

code of conduct - report abuse