feat: allow custom merge function for structuralSharing
As discussed here and here, this allows the provision of a function as the structuralSharing value, which effectively acts as a replacement for replaceEqualDeep. This way, consumers can still achieve the performance benefits of retained references even when cache data contains non-serializable values.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| query | ✅ Ready (Inspect) | Visit Preview | Jul 19, 2022 at 5:24PM (UTC) |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit fb3fcb3ac2463f30b498ba7164df06ae13216008:
| Sandbox | Source |
|---|---|
| @tanstack/query-example-react-basic | Configuration |
| @tanstack/query-example-react-basic-typescript | Configuration |
Codecov Report
Merging #3868 (fb3fcb3) into main (eab6e2c) will increase coverage by
0.45%. The diff coverage isn/a.
@@ Coverage Diff @@
## main #3868 +/- ##
==========================================
+ Coverage 96.36% 96.81% +0.45%
==========================================
Files 45 57 +12
Lines 2281 2668 +387
Branches 640 783 +143
==========================================
+ Hits 2198 2583 +385
- Misses 80 83 +3
+ Partials 3 2 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.