-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(nextjs): Fix Protect type #2373
Conversation
🦋 Changeset detectedLatest commit: 8a13642 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
06d2a9d
to
5de3829
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something that needs to go to v4 ? Or was caused by other recent changes after the release ?
5de3829
to
b3fa4b3
Compare
4359fef
to
9343eb5
Compare
const { children } = props; | ||
const { userId } = auth(); | ||
return userId ? null : <>{children}</>; | ||
} | ||
|
||
type ProtectServerComponentProps = React.ComponentProps<typeof ProtectClientComponent>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikosdouvlis Was there an issue with this ?
9343eb5
to
f353ac2
Compare
1dbaa81
to
281308b
Compare
3116a3a
to
6f2c17a
Compare
6f2c17a
to
75d0a25
Compare
7046c23
to
6ba6482
Compare
…esolution set to "node"
6ba6482
to
2581524
Compare
This reverts commit bbb9b66.
Description
Review commit by commit
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change
Packages affected
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/clerk-expo
@clerk/fastify
gatsby-plugin-clerk
@clerk/localizations
@clerk/nextjs
@clerk/clerk-react
@clerk/remix
@clerk/clerk-sdk-node
@clerk/shared
@clerk/themes
@clerk/types
build/tooling/chore