Skip to content

Commit

Permalink
Update packages/manager/src/queries/profile/preferences.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Mariah Jacobs <[email protected]>
  • Loading branch information
bnussman-akamai and mjac0bs authored Dec 12, 2024
1 parent d185cc4 commit f4f9070
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/manager/src/queries/profile/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type { APIError } from '@linode/api-v4';
import type { QueryClient } from '@tanstack/react-query';
import type { ManagerPreferences } from 'src/types/ManagerPreferences';

// Reference for this pattern: https://tkdodo.eu/blog/react-query-data-transformations#3-using-the-select-option
export const usePreferences = <TData = ManagerPreferences>(
select?: (data: ManagerPreferences | undefined) => TData,
enabled = true
Expand Down

0 comments on commit f4f9070

Please sign in to comment.