clerk / javascript

Official Javascript repository for Clerk authentication
https://clerk.com
MIT License
955 stars 210 forks source link

fix(elements): Show warning on used, but not activated verifications #3609

Closed LekoArts closed 1 week ago

LekoArts commented 2 weeks ago

Description

Add a development-only warning for cases when a user renders a <Strategy> component that isn't activated for their Clerk instance. As this can be intended behavior (e.g. build out a full example and let user enable/disable stuff solely in the dashboard) the warning can safely be ignored if necessary.

Since I touched on warnings/errors in general, I improved also some other existing ones.

Example of now more prominent error:

CleanShot 2024-06-20 at 15 39 45

Example of navigation event:

CleanShot 2024-06-21 at 08 41 26

Example of new warning:

CleanShot 2024-06-21 at 10 33 39

Checklist

Type of change

changeset-bot[bot] commented 2 weeks ago

🦋 Changeset detected

Latest commit: 705fa7fb4500c08c97b2285a4888e6f412d08044

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

This PR includes changesets to release 2 packages | Name | Type | | --------------- | ----- | | @clerk/elements | Patch | | @clerk/ui | 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