refactor: Rename custom hooks for consistency and clarity
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
This commit is contained in:
@@ -10,7 +10,7 @@ import type { MasterGroceryItem } from '../types';
|
||||
* A custom hook to manage all state and logic related to a user's watched items.
|
||||
* It encapsulates API calls and state updates for adding and removing items.
|
||||
*/
|
||||
export const useWatchedItems = () => {
|
||||
const useWatchedItemsHook = () => {
|
||||
const { user } = useAuth();
|
||||
// Get the watched items and the global setter from the DataContext.
|
||||
const { watchedItems, setWatchedItems } = useUserData();
|
||||
@@ -59,4 +59,6 @@ export const useWatchedItems = () => {
|
||||
removeWatchedItem,
|
||||
error,
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export { useWatchedItemsHook as useWatchedItems };
|
||||
Reference in New Issue
Block a user