Skip to content

Move stega util exports out of custom client hook so they can work in RSCs#120

Open
roger-datocms wants to merge 1 commit into
datocms:masterfrom
roger-datocms:fix/rsc-stega-reexport
Open

Move stega util exports out of custom client hook so they can work in RSCs#120
roger-datocms wants to merge 1 commit into
datocms:masterfrom
roger-datocms:fix/rsc-stega-reexport

Conversation

@roger-datocms
Copy link
Copy Markdown

Having the stripStega() etc. utilities exported from the useContentLink.tsx hook was breaking their usage in React Server Components.

This just moves them into src/index.ts.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for react-datocms-example canceled.

Name Link
🔨 Latest commit d896f9a
🔍 Latest deploy log https://app.netlify.com/projects/react-datocms-example/deploys/6a0ce62786a4f300081320f6

@matjack1
Copy link
Copy Markdown
Member

@stefanoverna this is to fix a user reported problem when trying to stripStega from the server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants