Skip to content

sayinserdar/react-query-snippet

Repository files navigation


React Query Snippets

Table of Contents

About the Project

This extension aims to accelerate development speed in projects that use React Query. It's an awesome library thanks everyone who contributes (https://react-query.tanstack.com/)

React Query Snippets

Here you can see the available snippets for now. Will be updated soon for other possible snippets

Snippet Content
uq Generates useQuery with API call
um Generates useMutation with API call
uiq Generates useInfinteQueries with API call
uqp Generates useQuery with one parameter and API call
upq Generates usePaginatedQuery with API call
rqc Generates a functional component with possible outcomes
rqct Generates a functional component with possible outcomes (ternary)
rqs Generates an if statement with status
iq Generates queryCache.invalidateQueries invalidateQueries statement

License

Distributed under the MIT license. See LICENSE.md for more information.

Extras

This is an ongoing project. PRs are always welcomed. If you have any question or any issue. You can contact me via Twitter or Email. Hope you gals/guys enjoy. Peace✌️

Contact

Serdar Sayın - srdrsayin(at)gmail(dot)com

Twitter Github

Releases

No releases published

Packages

No packages published