Skip to content

feat(useQueryWithUtilities): Return useQuery refetch function#114

Merged
bastilian merged 1 commit intomainfrom
return-use-query-refetch
Oct 8, 2025
Merged

feat(useQueryWithUtilities): Return useQuery refetch function#114
bastilian merged 1 commit intomainfrom
return-use-query-refetch

Conversation

@LightOfHeaven1994
Copy link
Collaborator

This adds refetch function to useQueryWithUtilities return so it can be used on refetching items when component re-render is needed

How to test:

  1. Run Story book
  2. Open QueryRefetchExample story
  3. Check if Fetch data button calls API but components stays the same
  4. Check if Refetch data button calls API and also re-renders component

@LightOfHeaven1994 LightOfHeaven1994 self-assigned this Oct 8, 2025
@LightOfHeaven1994 LightOfHeaven1994 added enhancement New feature or request utilities For things that are part of the utilities hooks For things that are part of the hooks labels Oct 8, 2025
@qltysh
Copy link

qltysh bot commented Oct 8, 2025

Diff Coverage: The code coverage on the diff in this pull request is 100.0%.

Total Coverage: This PR will not change total coverage.

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

Copy link
Owner

@bastilian bastilian left a comment

Choose a reason for hiding this comment

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

NICE! Thank you for adding this @LightOfHeaven1994!

@bastilian bastilian merged commit 1374bd5 into main Oct 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request hooks For things that are part of the hooks utilities For things that are part of the utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants