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

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages