You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(types,clerk-react): Make routerPush / routerReplace both required or both optional (#2227)
* chore(types): Use `Without` generic to resolve issues with `Omit` and complex types
* chore(types): Make `routerPush` and `routerReplace` options both required or both optional
In order to use unions we converted the `ClerkOptions`
interface to type to compose the union for mutual required
or optional for `routerPush` and `routerReplace` options.
* chore(repo): Ignore test runner files and CHANGELOG.md from formatting
Fixed the 3 slowed formatted files (filename ignored -> ms saved):
- packages/backend/tests/cloudflare-miniflare/worker.js -> 1582ms
- packages/backend/tests/edge-runtime/bundle.js -> 1477ms
- packages/clerk-js/CHANGELOG.md -> 177ms
* chore(repo): Add changeset
* chore(repo): Update ui-retheme-changes-reminder to notify for files with retheme variant
* Update .changeset/tiny-forks-sit.md
Co-authored-by: Lennart <lekoarts@gmail.com>
---------
Co-authored-by: Lennart <lekoarts@gmail.com>
Update the TypeScript types of `<ClerkProvider />`. If you use the `routerPush` prop you're now required to also provide the `routerReplace` prop (or other way around). You can also not provide them at all since both props are optional.
0 commit comments