Closed statico closed 1 year ago
cross-posting for visibility: https://github.com/clerkinc/javascript/pull/1510#issuecomment-1651854918
Hey @statico, if you get a chance could you test out this prerelease and let us know if you're seeing the expected behavior?
@clerk/clerk-expo@0.18.20-snapshot.46d14e7
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Package + Version
@clerk/clerk-js
@clerk/clerk-react
@clerk/nextjs
@clerk/remix
@clerk/types
@clerk/themes
@clerk/localizations
@clerk/clerk-expo
@clerk/backend
@clerk/clerk-sdk-node
@clerk/shared
@clerk/fastify
@clerk/chrome-extension
gatsby-plugin-clerk
build/tooling/chore
Dependencies + versions
Browser/OS
Simulator.app with an iPhone Pro 14 on MacOS 13.4.1 (22F82)
Description
I am trying to configure our React Native app to be able to switch between our production and staging environments so we only need to build and publish one app.
Part of switching involves changing the Clerk publishable key. Our main
app/_layout.tsx
looks like this:The value of
config.clerkPublishableKey
may change depending on the environment chosen. However, Clerk continues to use the first key initialized at load time, and will only switch if the app is force quit and restarted (which is an acceptable workaround for now).It would be great if
singleton.ts
here checked to see if the key was still the same as the key in the singleton Clerk client, like: