Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

pinkeyAT/react-query-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-query testcase

Tried to set initialData for Cache and access/modify it in subcomponents.

Currently it does only work when cached data exists otherwise throws an error in each component on useState(data[id]) because data[id] is not defined. In my opinion it should be as initialData was provided through nextjs getServerSideProps and passed to react-query.

About

some struggling with react-query´s cache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published