Repository navigation
docs: Quickstart npm snippet wraps AffitorProvider in a client component - #145
Merged
Merged
Conversation
…mponent The snippet rendered AffitorProvider directly in app/layout.tsx, which fails next build on @affitor/sdk 2.1.2 (layout.tsx is a Server Component). It now uses the same client-component Providers pattern as the click-tracking page, which works on every SDK version, and names the Pages Router alternative. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The Quickstart snippet (
setup-program.mdxlines 89-103) now wraps<AffitorProvider>in a client-componentProviders, the pattern already used on the click-tracking page. Text change only.Why
A tracking install check found the old snippet put
<AffitorProvider>straight inapp/layout.tsx; on @affitor/sdk 2.1.2 that failsnext build(createContext is not a function). TheProviderspattern works on every SDK version (2.1.3 adds"use client"to the React entry, Affitor/sdk#4, unpublished).How verified
Reproduced the failing
next buildwith the old snippet on SDK 2.1.2; the wrapped pattern is the one already documented on the click-tracking page.🤖 Generated with Claude Code