Live data from Hacker News

Show HN: Redux Offline – Build Offline-First Apps for Web and React Native

github.com

41–42 of 42 posts

Re: Show HN: Redux Offline – Build Offline-First Apps for Web and React Native

#41
post #36
post #27

Earlier quoted context omitted.

Other than Couch/Pouch, are there any other projects providing solutions to this problem? The one thing I dislike about couchdb is the default "user-per-db" model. I'm interested in solutions that allow a traditional relational db instead of a key-value store. Seems like with indexeddb on the client, and postgres on the server, you could probably keep a segment synced.

I haven't found one and I really wonder if everybody rolls their own sync solution. > The one thing I dislike about couchdb is the default "user-per-db" model. Why exactly? I think the overhead of the DBs is rather small. It's not like having a MySQL DB for every user ;) Also, you can achieve something like "global data" as well: Either replicate from users' DBs to a shared DB or maybe make some kind of "system" user…

Performance-wise, i think it's probably fine. But it doesn't play well with any kind of group permissions. Things are either owned by a user or they are almost impossible to sync.

Let's say you are making a CRM with couch/pouch. Let's say that you have permissions to see a Customer record, but it is shared across your company. How do you sync that? It's not owned by a user, it's owned by the company. What happens if permissions change?

Re: Show HN: Redux Offline – Build Offline-First Apps for Web and React Native

#42
post #2

Slightly off topic, but how do people manage state that aren't using Redux? When you google "redux alternatives", you typically get results for different flavors or variants of redux. But are there other fundamentally different paradigms for managing state? I love Redux, but I'm really curious what else is out. Also, the optimistic updates with rollbacks in this implementation is pretty neat.

I've been using Mobx very successfully on many of my projects now (both React & React Native). I'll prefer Mobx any day over Redux, just due to it's sheer simplicity and ease of use. Read: No need to burden your brain with the cognitive load of actions, reducers, dispatching actions, selectors etc. Mobx v/s Redux does kick off the OOP v/s Functional debate, but as a developer my productivity and effectiveness is meas…

Can you suggest a good MobX guide/tutorial to follow or a place that keeps MobX resources such as acemarke redux lists?
Post reply on HN