We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3d9bb2 commit bbdaf8eCopy full SHA for bbdaf8e
templates/react-native/src/client.ts.twig
@@ -390,6 +390,11 @@ class Client {
390
let data = null;
391
const response = await fetch(url.toString(), options);
392
393
+ const warnings = response.headers.get('x-{{ spec.title | lower }}-warning');
394
+ if (warnings) {
395
+ warnings.split(';').forEach((warning: string) => console.warn(warning));
396
+ }
397
+
398
if (response.headers.get('content-type')?.includes('application/json')) {
399
data = await response.json();
400
} else {
0 commit comments