useQuerySWR hook that would run two different queries (but always at least one enabled query) and mix in the output depending on what's available and if the cached data is stale. queryFn, return cached data from the promise but also spawn another promise against the fresh data source (if the cached version was stale) and call setQueryData directly. But then I'd run into trying to make this work with all the timing parameters and query state that react-query tracks.placeholderData but I didn't grasp the full lifecycle of it, I think it gets reset when queryFn throws an exception?https://x.com/tan_stack/status/2031128535470104577?s=20
dry-scarlet ยท 9h ago
https://x.com/powersync_/status/2010721010006552775?s=20
dry-scarlet ยท 2mo ago
You can now submit your website/app/project to http://TanStack.com 's new showcase and have it seen by the TanStack community! - Global showcase browser - Per-library filters - Category filters Submit here: https://tanstack.com/showcase/submit View all here: https://tanstack.com/showcase
dry-scarlet ยท 3mo ago