Create hook for handling fetching sections and related errors #296
Labels
enhancement
New feature or request
front end
Involves changes to the React application or other client-related files
There are at least three features using this pattern, and I agree that it could be refactored to be DRYer. A custom hook like
useSections
capturing theuseEffect
logic could be a solution, though it wouldn't handle the JSX repetition."For Future/Icebox: I feel that the L60-L78, can be extracted to as separate component and can be reused in features like where ever the sections list is needed."
Originally posted by @pushyamig in #270 (comment)
The text was updated successfully, but these errors were encountered: