Hook retrieving the configured FeedbackClient instance from the enclosing provider.
The active FeedbackClient.
Error If invoked outside of a <CupThreadProvider>.
Error
<CupThreadProvider>
function SubmitButton() { const client = useCupThreadClient(); const handlePress = async () => { const columns = await client.fetchColumns(); }; return <Button title="Load Columns" onPress={handlePress} />;} Copy
function SubmitButton() { const client = useCupThreadClient(); const handlePress = async () => { const columns = await client.fetchColumns(); }; return <Button title="Load Columns" onPress={handlePress} />;}
Hook retrieving the configured FeedbackClient instance from the enclosing provider.