Skip to content

query-cache 1.0.0-alpha.1 Latest

- [ ] add default cache and use query integration tests - [ ] add global sync default cache and use query integration tests - [ ] variables as query keys. - [ ] optimistic UI queries - [ ] storage options -> session, cookie, indexdb etc… - [ ] Performance optimizations like pagination and lazy loading data - [ ] Deduping multiple requests for the same data into a single request - [ ] refetchOnReconnect, refetchInterval - [ ] retry mechanism - [ ] structural sharing - [ ] dependent queries ```javascript let userId = null; useQuery(['user', email], getUserByEmail, { onSuccess: (user) => { userId = user.id; }, }) useQuery(['projects', userId], getProjectsByUser, { // The query will not execute until the userId exists enabled: !!userId, } ) ``` - [ ] refetchInterval number | false - [ ] refetchIntervalInBackground boolean - [ ] refetchOnMount boolean - [ ] refetchOnReconnect boolean

Install from the command line:
Learn more about npm packages
$ npm install @openreplyde/query-cache@1.0.0-alpha.1
Install via package.json:
"@openreplyde/query-cache": "1.0.0-alpha.1"

Recent Versions

Loading

Details


Last published

8 months ago

Issues

0

Total downloads

1