Skip to content
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(clerk-react): Export HOC-related types to support older React pat… #658

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

panteliselef
Copy link
Member

@panteliselef panteliselef commented Jan 10, 2023

…terns

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/themes
  • @clerk/localizations
  • @clerk/clerk-expo
  • @clerk/backend
  • @clerk/backend-core
  • @clerk/clerk-sdk-node
  • @clerk/edge
  • @clerk/shared
  • build/tooling/chore

Description

  • npm test runs as expected.
  • npm run build runs as expected.

Our docs: https://clerk.dev/docs/reference/clerk-react/useuser state that withUser can be used with the WithUserProp type, which we currently do not export.

This PR correctly exports the WithUserProp and other HOC-related helper types from all related packages (react, nextjs etc)

COR-58

@panteliselef panteliselef marked this pull request as ready for review January 10, 2023 17:18
@panteliselef panteliselef self-assigned this Jan 10, 2023
Copy link
Member

@anagstef anagstef left a comment

Choose a reason for hiding this comment

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

💡 Maybe we want to add some tests for exporting stuff or is it too much? (cc @nikosdouvlis)

@clerk clerk deleted a comment from linear bot Jan 11, 2023
@panteliselef panteliselef merged commit c54ada0 into main Jan 11, 2023
@panteliselef panteliselef deleted the COR-58 branch January 11, 2023 10:38
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants