Shu Ding
Shu Ding
@johanobergman It looks great! One limitation comparing to the original proposal is missing the ability to do "Promise.race", for example: ```js useSWRSuspenseStart() const { data: foo } = useSWR('/foo') const...
Yeah that's a great idea too! 👍
This can be one of our long-term goals, but it definitely needs a lot of implementation discussions.
@rostero1 it is a LRU (least recently used) model, but size based (not duration based). The reason is that I think this implementation should be more efficient after reading the...
Thank you @tannerlinsley for your great suggestion! > I track the "active"-ness of a query by how many hooks instances at any given time are using a query cache value....
Is it possible to create a minimal reproduction? The crash shouldn't be related to React Native I think, but the custom cache provider seems suspicious.
Very weird, let me try to reproduce this.
If you call `res.mutate()`, everything will be revalidated. That's currently the expected behavior: https://github.com/vercel/swr/blob/e1677522d86017ec84099f90be03ec9607baf34b/infinite/index.ts#L190-L191 We need to improve the local mutation API for pages a bit.
It seems that there're too many items created: https://github.com/nodejs/node/issues/37320? Would be great if you can provide a minimal reproduction for us to take a look.
Thanks for digging deep into this, @nandorojo! Since `cache.get(null)` also gives `1`, I'm almost sure it's caused by the bug described here: #1110 if you also have `useSWRInfinite`. The fix...