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

Latest commit

 

History

History
5 lines (3 loc) · 371 Bytes

File metadata and controls

5 lines (3 loc) · 371 Bytes

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.