Optimistic UI
Optimistic UI makes your app feel snappy by giving immediate feedback, even when actions take a bit longer. This is especially useful when you’re waiting for a network response. Optimistic updates can make a UI feel more responsive and improve the user experience. In this chapter, you will learn how to add optimistic UI updates with Remix.
This chapter is split into two sections:
- Considering optimistic UI
- Adding optimistic UI updates in Remix
First, we will discuss the trade-offs of using optimistic UI updates and investigate the complexity and risks of client/server state synchronizations and rollbacks. Next, we will review the current state of BeeRich and investigate which mutations to enhance with optimistic UI updates. We will then add optimistic UI updates where it makes sense using Remix’s primitives.
After reading this chapter, you will know how to evaluate the usage of optimistic UIs. You will have also practiced implementing...