Clerk integration call functions infinitely - need help
Using
expo@52.0.17
, convex@1.17.3
and @clerk/clerk-expo@2.4.2
, currently working in a turborepo project with yarn
I have configured the clerk integration according to the documentation, my _layout.tsx
:
when i authenticate a user in my app the terminal gets flooded with console logs and in the convex logs, my functions are getting invoked infinitely as well
as far as i could debug, the problem has its origin in convex, since i tested this in a freshly created clerk application and the error still happens10 Replies
I wonder if
<ClerkLoaded>
is causing an issue. I believe the <ConvexProviderWithClerk>
takes care of that concern for you. Don't know if that's actually causing a problem, though.Just tried removing
<ClerkLoaed>
The problem persistDoes the problem happen on Convex 1.17.2 (or any older version)? Per the changelog 1.17.3 includes a change in the Convex library around the memoization of clerk's
getToken
function, but we perhaps didn't account for clerk-expo hereGitHub
convex-js/CHANGELOG.md at main · get-convex/convex-js
TypeScript/JavaScript client library for Convex. Contribute to get-convex/convex-js development by creating an account on GitHub.
moving down to 1.17.2 didn't resolve the issue, but downgrading to 1.16.5 did
might be some missconfiguration on my end, but for now is working as expected
@THEO could you try upgrading to 1.17.2 again, just in case this was a issue with something not reloading? Looking through changes this could make sense for the change sshader points out above but there's nothing else obvious that cause cause this.
i will try in an hour or 2 and comment on the results, since I had to go out for lunch
@ballingt It works now
i tried upgrading one release at a time until 1.17.2 just to make sure, and the logs didn't appear unlike 1.17.3
thank you for checking, we'll have this fixed in the next release soon
just ran into this bug myself! thanks
This should be fixed in convex@1.17.4, just published @Sronds @THEO
thanks team, good work! ❤️❤️