Skip to content

Conversation

@zgavin1
Copy link
Contributor

@zgavin1 zgavin1 commented Apr 2, 2025

Description

Implement a default generic type for the second argument of the useEntityMutation hook, makes it cleaner to use across the different entity specific-hooks which may or may not need the second type.

GitHub Issue: Closes #20

Changes

  • implement the type definition change
  • update usages of this hook that were providing the extra duplicate arg.

Screenshots / Videos Showing UI Changes (if applicable)

Testing Strategy

describe how you or someone else can test and verify the changes

Concerns

Not totally sure why this didn't work when Caleb tried - may have just been a typechecker hiccup that day.

@zgavin1 zgavin1 self-assigned this Apr 2, 2025
Copy link
Collaborator

@calebbourg calebbourg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zgavin1 Nice job! I must have done something weird when I was trying this!

@zgavin1 zgavin1 merged commit d6a3af9 into main Apr 2, 2025
4 checks passed
@zgavin1 zgavin1 deleted the fix-default-generic-type-on-use-entity-mutation-hook branch April 2, 2025 18:59
@jhodapp jhodapp moved this to ✅ Done in Refactor Coaching Platform Apr 2, 2025
@jhodapp jhodapp added this to the 1.0-beta1 milestone Apr 2, 2025
@jhodapp jhodapp added the enhancement Improves existing functionality or feature label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improves existing functionality or feature

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants