A custom hook containing react-query queries and mutations and other logic related to interacting with Landmark objects.
Members
# static queryClient
The local instance of the react-query QueryClient.
# static queryClient
The local instance of the react-query QueryClient.
Methods
# async inner createLandmark()
The callback responsible for adding a new Landmark to the server, used by the react-query useMutation hook.
- @memberOf useLandmarks
# async inner editLandmark()
The callback responsible for updating a Landmark on the server, used by the react-query useMutation hook.
- @memberOf useLandmarks
# async inner getLandmarks()
The callback responsible for retrieving Landmark from the API, used by the react-query useQuery hook.
- @memberOf useLandmarks
# async inner removeLandmark()
The callback responsible for deleting a Landmark from the server, used by the react-query useMutation hook.
- @memberOf useLandmarks