cyremur
Explore posts from serversCCConvex Community
•Created by cyremur on 12/17/2024 in #support-community
convex.cloud requests blocked by malwarebytes
I just had a usertest session of my app and the user reported that links to my convex.cloud deployment were blocked by malwarebytes so we couldn't do any testing. Has this happened before? Do we have any idea what could cause this?
2 replies
CCConvex Community
•Created by cyremur on 11/29/2024 in #support-community
Index on optional nested properties
5 replies
CCConvex Community
•Created by cyremur on 10/10/2024 in #support-community
auth/core and convex-dev/auth seem to have diverged in typing
3 replies
CCConvex Community
•Created by cyremur on 9/30/2024 in #support-community
Delta updates on query? - understanding bandwidth
25 replies
CCConvex Community
•Created by cyremur on 9/26/2024 in #support-community
Convex function Auth only
Is there a way to reject convex function calls without Auth token on a Middleware level? I'm hoping to mark a convex function as Auth required in the backend and reject any calls without. Or is the best way to do that to check getUserId === undefined on start of the handler?
3 replies
CCConvex Community
•Created by cyremur on 9/19/2024 in #support-community
Convex Auth discord roles
Hi there! How well does convex Auth match the next Auth implementation? Is it feasible to configure it to put discord roles into profile via oauth similar to this article for next-Auth?
https://hwhite.dev/blog/next-auth-discord-roles#setup
7 replies
CCConvex Community
•Created by cyremur on 9/16/2024 in #support-community
convex@latest with vite / convex auth starter kit streamlining
Hey some suggestion for the npm create convex@latest with vite / convex auth starter kit. First of all, looking great, was up with a discord login chat app in a couple minutes and it translates well from next-auth setup.
However, I stumbled a bit for the vite SITE_URL and JWT env var setup and had to go back and forth between a couple doc pages.
Can we add the generateKeys.mjs script to the starter code in case I picked convex-auth in CLI and maybe even make that script execute the convex env set calls?
7 replies
CCConvex Community
•Created by cyremur on 3/9/2024 in #support-community
Spending limits?
I'm considering upgrading to paid plan from starter, but I would only consider that if there is a guaranteed ceiling on monthly spend. Is this currently an option?
6 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 11/2/2023 in #questions
How to keep track of multiple running mutations with same function but different input variables?
I have a single mutate function that's basically:
const doWork = api.example.doWork.useMutation()
And I call it from a bunch of buttons with
doWork.mutate{taskId: <someNumber>}
This works in executing tasks in parallel, but I can no longer use doWork.isLoading to prevent users from submitting the same tasks multiple times before they resolve.
My best bet was trying to put a list of active task ids in state and then clearing ids from the list in doWork.onSuccess, but now I have issues with inconsistent state / race conditions.
Am I on the right path and just need to update my setState or is there a better way of doing this?
2 replies
CCConvex Community
•Created by cyremur on 7/31/2023 in #support-community
Do you have to use exactly one schema.ts?
I'm thinking about splitting up app logic schema and auth logic into two different schemas and I'm wondering whether those can be two files or if I will have to put them all in one file.
3 replies
CCConvex Community
•Created by cyremur on 7/27/2023 in #support-community
How to understand database bandwidth
So in my use case database bandwidth is likely going to be the most crucial factor. However, I'm unsure what exactly would be considered database bandwidth?
Updating data via function? Most certainly
Reading data in a function? Probably
Subscription triggers of a useQuery on changed data? No idea
36 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 7/5/2023 in #questions
Memoize function in typescript
I want to memoize a pure function in ts that's just a static export without class. Typescript-memoize seems to need a class for the decorator to work. Do I have to wrap my functions into a class and possibly use a singleton or is there a simpler way to pull off memoization?
26 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 6/27/2023 in #questions
Discord server setup
Is there like a template or setup script to setup a nice discord server or should I just look around the ones I like and try to replicate a good channel structure manually?
2 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 6/5/2023 in #questions
Vercel Storage as CDN
I was looking into using the new vercel Storage stuff as an alternative to s3 for serving 100-200 static images for a Web app. I thought blob might be right but egress seems super tight? Any experiences or suggestions? Or should I just serve images elsewhere?
13 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 3/15/2023 in #questions
Deceptive Site Warning
6 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 1/23/2023 in #questions
Powering camera while streaming?
To my resident streamers: How do you power your camera during a stream? I have a Canon (EOS M50 I think) and just wanna put it on a stand and forget about it.
5 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 1/19/2023 in #questions
Can I zod this gamestate?
It's a game. There is more nested interfaces (Field, Entity, Card, Deck). Should I just give up and use z.any() or is this still reasonable with zod? 😄
6 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 1/11/2023 in #questions
ct3a + react-hexgrid npm package = "Cannot use import statement outside a module"
So I'm a bit confused about this and it's somewhat hard to google cause content mills spam the search with unrelated(?) beginner tutorials...
Basically, when I try to import from the [email protected] npm package from a ct3a app, I get the error on page load.
Any hints for understanding this problem are appreciated.
FWIW, I tried the package with a create-react-app and at least it spat out a webpage (with a couple warnings/errors).
Here's a github minimal example to run: https://github.com/cyremur/t3-hexgrid-minmal-error
Steps to reproduce:
1. create-t3-app
2. npm i react-hexgrid
3. put
import { Hexagon } from 'react-hexgrid';
and const hexes = GridGenerator.hexagon(6);
in index.tsx
Error message:
2 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 12/4/2022 in #questions
Accidental state persistence across next dynamic routes?
Just noticed that /profile/[username].tsx persists
useState()
between different users in my app... My solution and the first stackoverflow answer I found is:
This works for me but it feels weird after avoiding useEffects before. Is there a better way to do this or is the useEffect as good as it gets?1 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 12/2/2022 in #questions
TRPC QueryClient access in ct3a?
I want to disable windows focus refetching globally like here: https://tanstack.com/query/v4/docs/guides/window-focus-refetching
How do I access the queryclient in the scaffolded trpc in ct3a?
4 replies