Neah/node_modules/next/dist/esm/client/components/metadata/browser-resolved-metadata.js
2025-04-24 17:19:14 +02:00

11 lines
425 B
JavaScript

import { use } from 'react';
export function BrowserResolvedMetadata(param) {
let { promise } = param;
const { metadata, error } = use(promise);
// If there's metadata error on client, discard the browser metadata
// and let metadata outlet deal with the error. This will avoid the duplication metadata.
if (error) return null;
return metadata;
}
//# sourceMappingURL=browser-resolved-metadata.js.map