Implement loadOrCreateUnique
Description
Implements a getOrCreateUnique to complement upsertUnique
Manual testing instructions
N/A
Tests
- [x] Tests have been added and/or updated
- [ ] Tests have not been updated, because:
- [ ] I need help with writing tests
Checklist
- [ ] I've updated the part of the docs that are affected the PR changes
- [x] I've generated a changeset, if a version bump is required
- [x] I've updated the jsDoc comments to the public APIs I've modified, or added them when missing
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| design-system | Preview | Comment | Oct 20, 2025 2:00pm | |
| gcmp-homepage | Preview | Comment | Oct 20, 2025 2:00pm | |
| passkey-demo | Preview | Comment | Oct 20, 2025 2:00pm | |
| quint-ui | Preview | Comment | Oct 20, 2025 2:00pm |
23 Skipped Deployments
💡 Enable Vercel Agent with $100 free credit for automated AI reviews
I don't really understand why the E2E tests are failing, unit tests are good.
Updated based on context in https://github.com/garden-co/jazz/issues/2994#issuecomment-3416485076
- name changed
- added deduplication map (similar to the MessageQueue
processingset, but kept at module level like coValueCache to avoid exposing to subclasses) - adjust methods to check for in-flight operations
- add tests
Note: I didn't fix upsertUnique, but it has the same race condition concerns. I can apply the same fix if the approach is good (if so, I guess we should use the same map, right?)
✅ All jobs passed
Summary: 6 successful workflows
- ✅ Playwright Tests (2 jobs succeeded)
- ✅ End-to-End Tests for React Native (1 job succeeded)
- ✅ Unit Tests (1 job succeeded)
- ✅ Code quality (1 job succeeded)
- ✅ Jazz Run Tests (1 job succeeded)
- ✅ Pre-Publish tagged Pull Requests
Last updated: 2025-10-20 14:00:56 UTC
Let's pause this PR until we find a final pattern for unique