A
Anonymous

Fetch Action Interceptor - Copy this React, Tailwind Component to your project

Create-a-redux-middleware-that-will-intercept-actions-with-sufix-"fetch"-and-have-polimorphic-behavior:-checks-specific-slice-for-timestamp-field.-If-timestamp-is-lower-than-15-min,-return-slice-data.-Otherwise,-fetches-endpoint,-and-dispatch-to-redux-reducer-to-update-store

Prompt
Component Preview

About

FetchActionInterceptor - A Redux middleware that intercepts "fetch" actions, checks timestamps, and updates the store. Built with React a. Copy code today!

Share

Last updated 1 month ago