T
Join ServertRPC
❓-help
How to not send request in specific condition in useQuery()
Solution
const { data: artists, isLoading } = api.findArtist.useQuery({
name: search,
});
search
is empty string and is it possible to write condition when it should run request and when not, when search
is empty I dont want to run requestenabled: !!search