DEV Community

loading...

Discussion on: How to store relational data inside Redux

Collapse
desirepeeper profile image
Ali Almohsen

This structure feels much cleaner to me: gist.github.com/AliRain/606ac00d05...

Collapse
pigozzifr profile image
Francesco Pigozzi Author

This structure feels much more like a relational set of records to me too. But how would you access a single record without looping through the whole array? This sounds like a performance pitfall.