-
-
Couldn't load subscription status.
- Fork 1.2k
Closed
Labels
RTK-QueryenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Hello 👋
In documentation https://redux-toolkit.js.org/rtk-query/usage/usage-without-react-hooks#removing-a-subscription
is specified a different way of subscription - un-subscription method for a query, but how to we do it with a hook ?
const [trigger, { data }] = useLazyEnpointQuery();
I cant pass a skip property to useLazyQuery that forces the unsubscription from the query, it can be used only with the useQuery hook. So how can I unsubscribe from a lazy query ?
Thanks for help!
Metadata
Metadata
Assignees
Labels
RTK-QueryenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers