chore(deps): update dependency @tanstack/react-query to v5 (#2404)

* fix(deps): update dependency @tanstack/react-query to v5

* chore: update for compatibility with React Query v5

* chore: update for compatibility with React Query v5

* test: update tests

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Braden MacDonald <braden@opencraft.com>
This commit is contained in:
renovate[bot]
2025-09-17 16:10:08 -07:00
committed by GitHub
parent 61c87fe6a6
commit b95b3a60ad
23 changed files with 110 additions and 124 deletions

View File

@@ -34,7 +34,7 @@ const useClipboard = (canEdit: boolean = true) => {
const { data: clipboardData } = useQuery({
queryKey: ['clipboard'],
queryFn: getClipboard,
refetchInterval: (data) => (data?.content?.status === CLIPBOARD_STATUS.loading ? 1000 : false),
refetchInterval: (query) => (query.state.data?.content?.status === CLIPBOARD_STATUS.loading ? 1000 : false),
});
const { showToast } = useContext(ToastContext);