Skip to content

Replace effect code with useEffect #3

@vegetabill

Description

@vegetabill

This logic check belongs in a useEffect hook

if (mood && !affirmations.length) {
getAffirmations();
} else if (affirmations[0].mood_id !== mood.id) {
getAffirmations();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions