@@ -2,7 +2,6 @@ import { useClerk } from '@clerk/shared/react';
2
2
import type { SignInModalProps , SignInProps } from '@clerk/types' ;
3
3
import React from 'react' ;
4
4
5
- import { SESSION_TASK_ROUTE_BY_KEY } from '../../../core/sessionTasks' ;
6
5
import { normalizeRoutingOptions } from '../../../utils/normalizeRoutingOptions' ;
7
6
import { SignInEmailLinkFlowComplete , SignUpEmailLinkFlowComplete } from '../../common/EmailLinkCompleteFlowCard' ;
8
7
import type { SignUpContextType } from '../../contexts' ;
@@ -15,7 +14,7 @@ import {
15
14
} from '../../contexts' ;
16
15
import { Flow } from '../../customizables' ;
17
16
import { useFetch } from '../../hooks' ;
18
- import { preloadSessionTasks , SessionTasks } from '../../lazyModules/components' ;
17
+ import { SessionTasks } from '../../lazyModules/components' ;
19
18
import { Route , Switch , useRouter , VIRTUAL_ROUTER_BASE_PATH } from '../../router' ;
20
19
import {
21
20
LazySignUpContinue ,
@@ -130,11 +129,8 @@ function SignInRoutes(): JSX.Element {
130
129
>
131
130
< LazySignUpVerifyPhone />
132
131
</ Route >
133
- < Route path = { SESSION_TASK_ROUTE_BY_KEY [ 'org' ] } >
134
- < SessionTasks
135
- task = 'org'
136
- redirectUrlComplete = { signInContext . afterSignUpUrl }
137
- />
132
+ < Route path = 'tasks' >
133
+ < SessionTasks redirectUrlComplete = { signInContext . afterSignInUrl } />
138
134
</ Route >
139
135
< Route index >
140
136
< LazySignUpContinue />
@@ -162,9 +158,6 @@ function SignInRoutes(): JSX.Element {
162
158
const usePreloadSignUp = ( enabled = false ) =>
163
159
useFetch ( enabled ? preloadSignUp : undefined , 'preloadComponent' , { staleTime : Infinity } ) ;
164
160
165
- const usePreloadSessionTask = ( enabled = false ) =>
166
- useFetch ( enabled ? preloadSessionTasks : undefined , 'preloadComponent' , { staleTime : Infinity } ) ;
167
-
168
161
function SignInRoot ( ) {
169
162
const { __internal_setComponentNavigationContext } = useClerk ( ) ;
170
163
const { navigate, indexPath } = useRouter ( ) ;
0 commit comments