D
D
Deniel2022-02-09 23:06:36
React
Deniel, 2022-02-09 23:06:36

How to make a query on button click in RTK Query?

Greetings! The question arose: how can I make an asynchronous request (RTK Query) when the button is clicked, and not when the component is rendered? Please tell me, Googler is bad from me, I didn’t find anything not in Russian not in English

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kira, 2022-02-10
@Allan11

Standard Mutation Example​

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question