TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show me your immutable flux stores

9 pointsby rymohralmost 10 years ago

1 comment

rymohralmost 10 years ago
From the initial post:<p>Many of my flux stores manage collections and I find myself repeating a lot of boilerplate code for finding &#x2F; updating &#x2F; removing objects. In an effort to avoid pulling in something like ampersand-collection, I was hoping to use immutable.js to cut down on some of the duplication but I&#x27;m having a hard time wrapping my head around immutability. It actually feels wrong to be using immutable data within the stores since a store&#x27;s primary job is to mutate data. I must be doing something wrong.<p>Anyone have some complex stores backed by immutable data structures they could share?