test(preact-query/ssr): add test for 'useMutationState' returning empty array#10149
test(preact-query/ssr): add test for 'useMutationState' returning empty array#10149sukvvon wants to merge 1 commit intoTanStack:mainfrom
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughA new SSR test was added to the preact-query package testing the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 345734a
☁️ Nx Cloud last updated this comment at |
🎯 Changes
Add SSR test for
useMutationStatecalled without options, covering the defaultoptionsparameter (= {}).This mirrors the existing test in
react-query(ssr.test.tsx) that was missing inpreact-query.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
useMutationStatehook to the public API, enabling users to access and track mutation state with full support for server-side rendering.