Mhmd3ssam / caching-data

🔭 This repo is my practice for creating custom react hooks for fetching and caching data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fetching And Caching Data

This repo is my practice for creating custom react hooks for fetching and caching data

  • Implemnet useGetPostsQuery and fetching data from jsonplaceholder api and check if the user request the posts for the first time or note and delivering data to him.
  • Implemnet usegetCommentsQuery that fetching users comments pased on postId and cach fetched data and deliver it to the user.
  • Implemnt Ignore feature that make the hook only fetch the data in certin way as its in RTQ

Alt text

About

🔭 This repo is my practice for creating custom react hooks for fetching and caching data


Languages

Language:JavaScript 88.1%Language:HTML 11.9%