Privy Popup Blocking
Problem
What Causes This
Solution
Pre-fetch Data Before Transaction
// β
Good: Pre-fetch data
const { data } = useQuery(['someData'], fetchSomeData);
const sendTx = () => sendTransaction(data);
// β Bad: Fetching data during the transaction
const sendTx = async () => {
const data = await fetchSomeData(); // This delay causes popup blocking
return sendTransaction(data);
};Best Practices
Testing
Common Scenarios
Last updated
Was this helpful?