Custom hook for managing recipe tags with duplicate detection and validation.
Provides three core operations:
addTag: Processes new tags through similarity checking, exact match detection,
and validation queue for fuzzy matches
removeTag: Removes tags by exact name match
addTagIfNotDuplicate: Safely adds tags with case-insensitive duplicate prevention
The hook integrates with the validation queue system to prompt users when similar
tags are found in the database, helping maintain data consistency and prevent
duplicate entries with slight variations.
Custom hook for managing recipe tags with duplicate detection and validation.
Provides three core operations:
addTag: Processes new tags through similarity checking, exact match detection, and validation queue for fuzzy matchesremoveTag: Removes tags by exact name matchaddTagIfNotDuplicate: Safely adds tags with case-insensitive duplicate preventionThe hook integrates with the validation queue system to prompt users when similar tags are found in the database, helping maintain data consistency and prevent duplicate entries with slight variations.