local-first-web / state

A Redux-based state container for local-first software, offering seamless synchronization using Automerge CRDTs. (Formerly known as 🐟 Cevitxe).
187 stars 10 forks source link

Add whitelist/blacklist for parts of state that should/shouldn't be shared #69

Open HerbCaudill opened 4 years ago

HerbCaudill commented 4 years ago

From https://github.com/DevResults/cevitxe/pull/49#issuecomment-615466220 :

we need some additional markers on the provided state to indicate which things should be persisted/synced to the remote instances. For instance, you might want to exclude the ui section of the state in this example from the redux docs.

A potential solution could look like the whitelist/blacklist config used in redux-persist.

Something to think about, I think we'll want to allow the flexibility of consumers putting things in their redux store but not being transmitted to all replicas (e.g. UI filter selections, etc.).