Yes for this example I could have made this isomorphic. But i’m tending to move away from that concept entirely. We can still achieve optimistic UI but it doesnt have to be live-query doing the job. The thing about isomorphism/ database everywhere is its expensive. When your app is at scale, its hard to scale out when your server is tracking queries constantly. At workpop we tend to use Server only methods, and spoof latency compensation with redux. Its perfectly fine to dispatch to the store before updating the server.

Checkout Redux Optimist for a fine grained solution for optimistic updates.

Software Engineer at Workpop, Inc.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store