Skip to content

chore(e2e): Test control components for Astro and Astro + React - #3693

Merged
panteliselef merged 4 commits into
mainfrom
elef/eco-25-add-e2e-tests-with-basic-flows-with-the-react-components
Jul 12, 2024
Merged

chore(e2e): Test control components for Astro and Astro + React#3693
panteliselef merged 4 commits into
mainfrom
elef/eco-25-add-e2e-tests-with-basic-flows-with-the-react-components

Conversation

@panteliselef

Copy link
Copy Markdown
Contributor

Description

This PR also changes astro.node.withEmailCodes to astro.node.withCustomRoles. Additionally the withCustomRoles now will use the production Backend API

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

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

This commit also changes `astro.node.withEmailCodes` to `astro.node.withCustomRoles`. Additionally the `withCustomRoles` now will use the production Backend API
@panteliselef panteliselef self-assigned this Jul 11, 2024
@changeset-bot

changeset-bot Bot commented Jul 11, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6ed3c6e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/astro Patch

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

import { $userStore } from '@clerk/astro/client/stores';

export function PageWithUser({ children }: PropsWithChildren) {
const user = useSyncExternalStore($userStore.listen, $userStore.get, $userStore.get);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we use the custom store hook that was previously created for this? Or is the intentional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We are not exporting that in user land tho. I would expect people that use @clerk/astro to create their own hook or use @nanostores/react. In the future we could have useUser exported from @clerk/astro

@panteliselef
panteliselef enabled auto-merge (squash) July 12, 2024 09:47
@panteliselef
panteliselef merged commit 64cc9b5 into main Jul 12, 2024
@panteliselef
panteliselef deleted the elef/eco-25-add-e2e-tests-with-basic-flows-with-the-react-components branch July 12, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants