Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changelog update changelog/8720-spaces-ui #1528

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions changelog/platform.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,33 @@ icon: "layer-group"

## December 2024

### December 13, 2024

<div style={{ display: "table", width: "auto" }}>
<div style={{ display: "table-row", width: "auto" }}>
<Snippet file="chips/spaces.mdx" />
<div style={{ float: "left", display: "table-column", paddingLeft: "30px", width: "calc(80% - 30px)" }}>

spaces-ui@88559f2
The following changes have been made:

- Updated the version of `@tanstack/react-query` and `@tanstack/react-query-devtools` libraries.
- Modified the implementation of various React Query hooks to use the new options syntax introduced in the updated library version.
- Refactored the `useQuery` and `useMutation` hooks to use the new `queryKey` and `queryFn` / `mutationFn` options.
- Updated the `onSuccess` and `onError` handlers to use the new callback signature.
- Added `keepPreviousData` option to keep previous data when refetching queries.
- Adjusted the usage of `invalidateQueries` to use the new `queryKey` option.
- Removed the `useErrorBoundary` option from mutations as it is no longer supported.
- Removed the `useIsMutating` hook and replaced it with the new `useIsMutating` hook that accepts a `mutationKey` option.
- Updated the usage of the `refetchOptions` in the `SheetSelector` component to match the new library API.
- Removed the `initialData` option from `useQuery` hooks as it is no longer supported.
- Replaced the `useQueryCache` hook with the new `QueryCache` instance.

These changes align the application with the new API of the `@tanstack/react-query` library. Developers using the application should ensure that their code is updated to use the new API for managing queries and mutations. Additionally, the new `QueryCache` instance provides better control over the query cache and allows for custom error handling.
</div>
</div>
</div>

### December 10, 2024

<div style={{ display: "table", width: "auto" }}>
Expand Down
19 changes: 19 additions & 0 deletions changelog/src/platform/20241213-1734106051316.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### December 13, 2024
## spaces

spaces-ui@88559f2
The following changes have been made:

- Updated the version of `@tanstack/react-query` and `@tanstack/react-query-devtools` libraries.
- Modified the implementation of various React Query hooks to use the new options syntax introduced in the updated library version.
- Refactored the `useQuery` and `useMutation` hooks to use the new `queryKey` and `queryFn` / `mutationFn` options.
- Updated the `onSuccess` and `onError` handlers to use the new callback signature.
- Added `keepPreviousData` option to keep previous data when refetching queries.
- Adjusted the usage of `invalidateQueries` to use the new `queryKey` option.
- Removed the `useErrorBoundary` option from mutations as it is no longer supported.
- Removed the `useIsMutating` hook and replaced it with the new `useIsMutating` hook that accepts a `mutationKey` option.
- Updated the usage of the `refetchOptions` in the `SheetSelector` component to match the new library API.
- Removed the `initialData` option from `useQuery` hooks as it is no longer supported.
- Replaced the `useQueryCache` hook with the new `QueryCache` instance.

These changes align the application with the new API of the `@tanstack/react-query` library. Developers using the application should ensure that their code is updated to use the new API for managing queries and mutations. Additionally, the new `QueryCache` instance provides better control over the query cache and allows for custom error handling.