feat: setup @tanstack/solid-query for data fetching, use in upload queue#326
Conversation
Changes:
Total lines: 4519 (-1) |
a0d3ba3 to
0161e26
Compare
deployed preview: https://326.connect-d5y.pages.devWelcome to connect! Make sure to:
Mobile
Desktop
|
9cb82a8 to
7cc0f18
Compare
c4aa292 to
d79c83e
Compare
|
The test seems fail when Sorry maybe I lead you down the wrong path for this, and we should create a different wrapper for testing 🤔 |
|
You can put |
|
great article you attached! we need to revisit this sooner than later |
|
took the creator's advice and extracted the query defaults to make the tests more flexible |
|
i don't like the marking as draft for now |
|
moved to co-locating queries and keys together. as we migrate queries over, we can add onto the new objects. i tested out pre-fetching the upload queue even if it's not visible -- takes 3 lines of code now 😊 |
if we don't do this, there is odd behavior with the rendering of objects. sometimes duplicates show up (probably how For / reconcile works under the hood)
8022ad4 to
bf25d5a
Compare
|
do we want to recreate the mutation for every row? we only need to recreate it when the dongle changes |
|
oh I see |
This reverts commit a1d3578.
| <Routes /> | ||
| </Router> | ||
| <QueryClientProvider client={queryClient}> | ||
| <SolidQueryDevtools /> |
There was a problem hiding this comment.
Is this run in production? I also see we include the solid devtools plugin









https://tkdodo.eu/blog/react-query-data-transformations
https://tkdodo.eu/blog/testing-react-query
https://tkdodo.eu/blog/the-query-options-api#query-factories
solid-queryfor app, dev tools integration (note: does not bundle in prod). see PR deploymentsolid-querysolid-query)createQuerytest cases:
Footnotes
the transition between offline and online with offline messages present is undefined behavior (could say "device offline" then messages appear, or "nothing to upload" then appear). existing behavior, created issue: https://github.com/commaai/connect/issues/354 ↩