Skip to content

docs: Update docs custom ssr to use new instance instead of singleton#7653

Open
loic-masson wants to merge 1 commit into
Flagsmith:mainfrom
loic-masson:docs/update-custom-ssr
Open

docs: Update docs custom ssr to use new instance instead of singleton#7653
loic-masson wants to merge 1 commit into
Flagsmith:mainfrom
loic-masson:docs/update-custom-ssr

Conversation

@loic-masson
Copy link
Copy Markdown

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Updating the documentation for custom SSR as I think it is a bit misleading.
I thought that the flagsmith init would be straight from flagsmith/isomorphic.
Which created issues in my SSR setup.

The documentation is showing to use createFlagsmithInstance which also reflects how the Next js is setup.

How did you test this code?

Just documentation changes.

@loic-masson loic-masson requested a review from a team as a code owner June 1, 2026 05:46
@loic-masson loic-masson requested review from Holmus and removed request for a team June 1, 2026 05:46
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@loic-masson is attempting to deploy a commit to the Flagsmith Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Next.js and SSR integration documentation to include the initialization of a fresh Flagsmith instance per request using createFlagsmithInstance to prevent identity leaking across concurrent SSR requests. There are no review comments, and I have no feedback to provide.

@github-actions github-actions Bot added the docs Documentation updates label Jun 1, 2026
@loic-masson loic-masson changed the title Update docs custom ssr to use new instance instead of singleton docs: Update docs custom ssr to use new instance instead of singleton Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants