Comments (8)
The old way still works, but I'd like to see if we can use cache.evict(id)
here.
Also need to see if the new apollo cache can fix the pagination issue.
Currently re-watching https://www.youtube.com/watch?v=n_j8QckQN5I&t=1827s
from advanced-react-rerecord.
I think it's working!
https://github.com/wesbos/advanced-react-rerecord/blob/master/frontend/lib/paginationField.js
from advanced-react-rerecord.
I'm gonna say this is good to go!
from advanced-react-rerecord.
from advanced-react-rerecord.
from advanced-react-rerecord.
https://www.apollographql.com/docs/react/v3.0-beta/caching/cache-configuration/#key-arguments
from advanced-react-rerecord.
Pretty much done this. I have all the cache normalization done, I just need to now figure out how to re-render the current items when you delete an item.
Also need to figure out the opposite. When you add an item, it puts it at the front of the cache.
from advanced-react-rerecord.
Link to Apollo bug? https://spectrum.chat/apollo/apollo-client/apollo-client-3-evict-api~cd289ed2-92e7-4281-8f73-ddfebb8ad09d
from advanced-react-rerecord.
Related Issues (20)
- Dummy Data HOT 1
- Update Edit UI HOT 1
- Apollo 3 isn't launched yet HOT 28
- Update Cache and pagination logic when you add an item HOT 1
- Deploy two separate apps (frontend and backend) HOT 1
- Custom _document.js to be written with React hooks HOT 1
- Update Next.js to 9.3 HOT 1
- Any plan to upgrade to prisma 2.0? HOT 1
- Replace getInitialProps with getStaticProps or getServerSideProps HOT 2
- Recording in Keystone.js 5 or Prisma 2? HOT 3
- Calculation for resetPassword might be off? HOT 3
- Use next.js Api or stick with GraphQL Yoga HOT 5
- search doesnt work HOT 1
- Pagination with cache is still goofy HOT 9
- Edit needs to work
- update query() to executeQuery
- Hi Wes, any idea how long until the rerecord will be released? HOT 5
- 2020 is over... Any Update HOT 1
- Need to pass resolveFields to lists.Product.findOne to return product.name HOT 1
- Unhandled Runtime Error Error: useKeystone must be called inside a KeystoneProvider component HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advanced-react-rerecord.