Repository navigation
refactor(examples/lit/basic): infer the controller types from the query and mutation functions instead of passing generics - #12184
Conversation
…ry and mutation functions instead of passing generics
|
|
View your CI Pipeline Execution ↗ for commit 225a6f7
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
size-limit report 📦
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
🎯 Changes
The lit basic example passed explicit generics such as
createQueryController<TodosResponse, Error>andcreateMutationController<Todo, Error, string>, although the typedfetchTodosFromServerandaddTodoOnServeralready give the same types. Remove the generics inbasic-query.ts,main.ts, andmutation.ts, along with the type imports they leave unused.lifecycle-contract.tskeeps its generics, because itsqueryFnalways throws and the data comes fromsetQueryData.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit