Working with Redux Toolkit

This example fetches the first 150 entries from the API result at build time in order to cache the response. In other words, reduces the server load by serving prerendered static pages.

Client side performance will be benefits by this feature. Also, images are lazy loaded; it means, they're loaded when appears in client viewport.

Endpoints:

  • /flags(current)
  • /flags/{name}
No flag