Closed Munawwar closed 1 month ago
Hi, first off nice project! 🚀
Question: Shouldn't enabled take the signal and not signal.value in the readme example?
enabled
signal.value
const query = useQuery$(() => ({ queryKey: ["user"], queryFn: () => fetchUser(), enabled: isUserRegistered.value, // <-- this part }));
useQuery$ takes callback as an argument - so it will subscribe to any signal reads inside of the callback
useQuery$
Right! I get it now. Thanks.
Hi, first off nice project! 🚀
Question: Shouldn't
enabled
take the signal and notsignal.value
in the readme example?