We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
componentProps
1 parent f936cf1 commit 6ce705cCopy full SHA for 6ce705c
.changeset/perfect-carrots-arrive.md
@@ -0,0 +1,5 @@
1
+---
2
+'@clerk/clerk-js': patch
3
4
+
5
+Fix issue accessing routing option when componentProps is undefined.
packages/clerk-js/src/ui/lazyModules/providers.tsx
@@ -57,7 +57,7 @@ type LazyComponentRendererProps = React.PropsWithChildren<
57
type PortalProps = Parameters<typeof Portal>[0];
58
59
export const LazyComponentRenderer = (props: LazyComponentRendererProps) => {
60
- if (props.componentProps.routing === 'virtual') {
+ if (props?.componentProps?.routing === 'virtual') {
61
deprecated('routing="virtual"', 'Use routing="hash" instead.');
62
}
63
return (
0 commit comments