Comments (3)
I don't know how React is planning it's built-in cache thing and how this would interop with that, or maybe we won't have this problem anymore as the cache would not be global, I haven't looked into things so I'm not sure.
that is a good point, react will most definitively help with such issues in the long run. the cache lives in the component graph and then users decide where keys a valid:
import { Cache } from 'react'
<Cache>
<SuspendingComponent />
i will start with a simple addition for unique cache keys. reacts useId() will be very interesting, we could add this when it drops.
from suspend-react.
added a small section https://github.com/pmndrs/suspend-react#making-cache-keys-unique
from suspend-react.
Looks good
from suspend-react.
Related Issues (14)
- Cancellation HOT 11
- Re-rendering on clear HOT 2
- Contribution Guide HOT 1
- Wrong file ending. HOT 1
- PeerDependencies complaint under React 16.14
- shallowEqualArrays falling short when using empty array as key
- TypeScript Improvements HOT 6
- How to clean ressources ? HOT 7
- Source of 0.0.10 HOT 1
- Assets are not cached correctly using array as useLoader input
- Discussion: Concerns about uncollectable references? HOT 2
- Fallback to previous render HOT 1
- How would you use suspend-react when fetching through a hook? HOT 4
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 suspend-react.