Skip to content

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

Merged
stefanoverna merged 1 commit into
datocms:masterfrom
roger-datocms:fix/rsc-stega-reexport
Jun 4, 2026
Merged

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

Conversation

@roger-datocms
Copy link
Copy Markdown
Contributor

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

@stefanoverna stefanoverna merged commit cfc243b into datocms:master Jun 4, 2026
7 checks passed
@stefanoverna
Copy link
Copy Markdown
Member

Released as 8.0.4

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.

3 participants