Uh oh!
There was an error while loading. Please reload this page.
fix(clerk-js): Avoid triggering prepare verification twice - #2458
Conversation
🦋 Changeset detectedLatest commit: 02a86d4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
panteliselef
commented
Jan 2, 2024
!snapshot |
clerk-cookie
commented
Jan 2, 2024
Hey @panteliselef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/chrome-extension@0.6.3-snapshot.vd68f379 --save-exact
npm i @clerk/clerk-js@4.68.2-snapshot.vd68f379 --save-exact
npm i @clerk/clerk-expo@0.19.28-snapshot.vd68f379 --save-exact |
panteliselef
commented
Jan 2, 2024
!snapshot |
clerk-cookie
commented
Jan 2, 2024
Hey @panteliselef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/chrome-extension@0.6.3-snapshot.v88ff6e0 --save-exact
npm i @clerk/clerk-js@4.68.2-snapshot.v88ff6e0 --save-exact
npm i @clerk/clerk-expo@0.19.28-snapshot.v88ff6e0 --save-exact |
nikosdouvlis
left a comment
There was a problem hiding this comment.
This needs to be solved in the resource level as usage of utils like useEffectForceOnce is generally discouraged, but I'm happy to merge it as a hotfix for v4.
@panteliselef can you make sure we don't have a similar hook already? I remember us using something like this in 2022 when React 18 came out. Not sure if we still use it anywhere however
| useEffectForceOnce(() => console.log('NICE')); | ||
| useEffect(() => { | ||
| console.log('nice'); |
There was a problem hiding this comment.
I'm debugging on another app that is not local in my machine and i need the logs + snapshots :)
panteliselef
commented
Jan 2, 2024
@nikosdouvlis don't merge yet, this is not resolved yet. The best approach would be to either introduce a |
panteliselef
commented
Jan 2, 2024
!snapshot |
clerk-cookie
commented
Jan 2, 2024
Hey @panteliselef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/chrome-extension@0.6.3-snapshot.v42e17ec --save-exact
npm i @clerk/clerk-js@4.68.2-snapshot.v42e17ec --save-exact
npm i @clerk/clerk-expo@0.19.28-snapshot.v42e17ec --save-exact |
panteliselef
commented
Jan 2, 2024
!snapshot |
clerk-cookie
commented
Jan 2, 2024
Hey @panteliselef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/chrome-extension@0.6.3-snapshot.vaf7adfd --save-exact
npm i @clerk/clerk-js@4.68.2-snapshot.vaf7adfd --save-exact
npm i @clerk/clerk-expo@0.19.28-snapshot.vaf7adfd --save-exact |
d5afe3f to
1cf9070Comparepanteliselef
commented
Jan 2, 2024
!snapshot |
clerk-cookie
commented
Jan 2, 2024
Hey @panteliselef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/chrome-extension@0.6.3-snapshot.v1cf9070 --save-exact
npm i @clerk/clerk-js@4.68.2-snapshot.v1cf9070 --save-exact
npm i @clerk/clerk-expo@0.19.28-snapshot.v1cf9070 --save-exact |
panteliselef
commented
Jan 2, 2024
!snapshot |
clerk-cookie
commented
Jan 2, 2024
Hey @panteliselef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/chrome-extension@0.6.3-snapshot.v6ca6305 --save-exact
npm i @clerk/clerk-js@4.68.2-snapshot.v6ca6305 --save-exact
npm i @clerk/clerk-expo@0.19.28-snapshot.v6ca6305 --save-exact |
panteliselef
commented
Jan 2, 2024
!snapshot |
clerk-cookie
commented
Jan 2, 2024
Hey @panteliselef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/chrome-extension@0.6.3-snapshot.v8fcca55 --save-exact
npm i @clerk/clerk-js@4.68.2-snapshot.v8fcca55 --save-exact
npm i @clerk/clerk-expo@0.19.28-snapshot.v8fcca55 --save-exact |
panteliselef
commented
Jan 2, 2024
!snapshot |
clerk-cookie
commented
Jan 2, 2024
Hey @panteliselef - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/chrome-extension@0.6.3-snapshot.va439d8e --save-exact
npm i @clerk/clerk-js@4.68.2-snapshot.va439d8e --save-exact
npm i @clerk/clerk-expo@0.19.28-snapshot.va439d8e --save-exact |
5d8b1e6 to
5ae8758CompareUse `useFetch` to cache the ongoing request and not allow another to be fired until the first one has resolved.
5ae8758 to
5f6865bCompareuseEffectForceOnce to avoid firing useEffect twice in dev836ac96 to
02a86d4Comparepanteliselef
commented
Jan 2, 2024
@nikosdouvlis Do u mind taking another look ? Changes have been made since the first push |

Description
Backport of #2459
Before
Screen.Recording.2024-01-02.at.5.48.50.PM.mov
After
Screen.Recording.2024-01-02.at.5.48.06.PM.mov
Checklist
npm testruns as expected.npm run buildruns as expected.Type of change
Packages affected
@clerk/backend@clerk/chrome-extension@clerk/clerk-js@clerk/clerk-expo@clerk/fastifygatsby-plugin-clerk@clerk/localizations@clerk/nextjs@clerk/clerk-react@clerk/remix@clerk/clerk-sdk-node@clerk/shared@clerk/themes@clerk/typesbuild/tooling/chore