initialData and one without.initialData...status: "success"status = "error", isError = trueisError, I render a button that calls query.refetch()isFetching, the button is disabled and a loading indicator is renderedisError remains true until the query succeeds (desired behavior, since I'm using isError to show the button which is also showing the loading-after-error user feedback)isError = false again and the retry button goes away (desired)initialData (which also happens to start with enabled: false)status = "loading", fetchStatus = "idle"IntersectionObserver)status = "loading", fetchStatus = "fetching")isError = true, status = "error"isError, I render a button that calls query.refetch()isFetching, the button is disabled and a loading indicator is renderedstatus = "loading", fetchStatus = "fetching"isError = false problem - because isError immediately changes to false, my button goes away and therefore the user doesn't see the loading feedbackstatus: "success" (has some data in the cache) to status: "error" will keep isError: true during refetching, until the query succeeds, BUT a query that changes status: "loading" (no data in the cache) to status: "error" loses isError: true during refetching.https://x.com/tan_stack/status/2031128535470104577?s=20
dry-scarlet · 10h 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