-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regarding onSuccess from quill/src/app/auth-callback /page.tsx #67
Comments
two options
or
|
same issue No overload matches this call. |
This worked for me (useEffect, like @farnell mentioned)
|
Thank You , Error Solved |
MMMM THANK U THIS WORKED |
trpc.authCallback.useQuery(undefined,{
onSuccess: ({success}) => {
if (success) {
// user is synced to db
router.push(origin ?
/${origin}
: '/dashboard')}
},
On hovering onSuccess this show
No overload matches this call.
Overload 1 of 2, '(input: void, opts: DefinedUseTRPCQueryOptions<{ success: boolean; }, { success: boolean; }, TRPCClientErrorLike<{ errorShape: DefaultErrorShape; transformer: false; }>, { ...; }>): DefinedUseTRPCQueryResult<...>', gave the following error.
Object literal may only specify known properties, and 'onSuccess' does not exist in type 'DefinedUseTRPCQueryOptions<{ success: boolean; }, { success: boolean; }, TRPCClientErrorLike<{ errorShape: DefaultErrorShape; transformer: false; }>, { success: boolean; }>'.
The text was updated successfully, but these errors were encountered: