Custom hooks
useQueryWithErrorHandling
- runs the query and automatically displays an error toast in case of some error occurs.useClientQueryWithErrorHandling
- runs the query using Apollo Client instance and display an error toast in case of an error.useError
- displays an error toast with a friendly message.useToast
- allows you to display a custom toastuseApolloLocalStorage
- retrieves a getter and a seetter pair for a certain key from Apollo client cache (used to handle local storage).(Optional)
useUserData
- executes a default query to load the current user information (including a list of rights)(Optional)
useRights
- verifies if the current logged user has a specific right.
Last updated