prtcl
CCConvex Community
•Created by prtcl on 7/24/2024 in #support-community
Importing Static Content
Hey gang, my app has some fixed sets of entities (category types, feature flags etc) and static content (just text with an ID). I have build scripts that collect everything and spit out JSON that I've been importing into tables via CLI. For prod though the CLI isn't available, so the options seem to be clearing the table and manually importing JSON in the control panel? Or is there a better way to implement this? Totally fine if this is a manual step rather than part of CI/CD, and I don't need to preserve any _id relationships. Any ideas?
5 replies
CCConvex Community
•Created by prtcl on 6/20/2024 in #support-community
Auth in PWA/Capacitor
Hey gang, I've been developing an app with Convex using Clerk auth, following the docs to set up a users table and sync on login. Everything has been awesome except that I've hit a snag when setting up PWA features.
When running the app as PWA, any time its in the background (swiping away, switching to native camera to take a photo, etc) the app suspends and then resumes, causing Clerk and Convex auth to spin through a loading state to refresh the token. This in turn causes the whole app to isLoading and the user to lose state.
Is there a way to prevent this refresh cycle? Ive dug through the docs and library code and don't see anything obvious. Thanks!
7 replies