@connectedxm/admin 2.3.8 → 2.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ ---
2
+ description: adding new query functions to interface with a GET endpoint in the API
3
+ globs:
4
+ alwaysApply: false
5
+ ---
6
+ When creating a Query function to interact with a get or list endpoint in the API you should follow the same template.
7
+
8
+ Standard Parts of query file:
9
+ - a QueryKey Function
10
+ - a Setter function
11
+ - the function to interact with the api
12
+ - the react-query hook to use the function
13
+
14
+ Single Query Example: [useGetAccount.ts](mdc:src/queries/accounts/useGetAccount.ts)
15
+ Infinite Query Example: [useGetAccounts.ts](mdc:src/queries/accounts/useGetAccounts.ts)