Tags: alecf/react-query
Tags
fix(devtools): improve devtools a11y (TanStack#2947) * fix(devtools): improve devtools container a11y default element changes to aside from footer because aside represents a portion of a document whose content is only indirectly related to the document's main content. aria-label is also added to replace the text "generic" in a11y tree. * fix(devtools): add aria to devtools toggle button aria-expanded indicates open/closed of the menu aria-haspopup indicates this is a menu button aria-controls to link to the menu, also added aria-label on the menu to label it. Read more: https://www.w3.org/TR/wai-aria-practices/examples/menu-button/menu-button-links.html * fix(devtools): menuitem are visible in a11y tree in closed devtools This is because the element is just hidden visually, but is still inside the DOM. The added conditional display only affects the inner container, which means the animation of opening/closing is reserved.
fix(useQuery): don't throw error if errorBoundary has just been reset (… …TanStack#2935) the fix for disabled queries was wrong, because disabled queries still need to throw if they are fetching due to some other means, like `refetch`. However, if a query has just been reset, we want to skip throwing for one render cycle. The useEffect that clears the reset will then make sure that further errors will be thrown
fix(useQuery): make sure that disabled queries in error state don't t… …hrow (TanStack#2933)
fix(types): Export the `Mutation` type and change default `TVariables… …` from `void` to `unknown` (TanStack#2892)
feat(persistQueryClient): try to clean the old persistented data when… … storage full (TanStack#2851)
feat(persistQueryClient): add optional functions to serialize and des… …erialize from Storage Persistors (TanStack#2864)
feat(useQuery): Provide AbortSignal to queryFn (TanStack#2782)
fix(types): expose `CancelOptions` & `SetDataOptions` (TanStack#2855)
PreviousNext